You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by pa...@apache.org on 2020/09/27 15:48:02 UTC

[camel] 02/02: OptaPlannerProducer: Add missing log message argument

This is an automated email from the ASF dual-hosted git repository.

pascalschumacher pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 7dccde05a780d79205d02d8366ec751e0f7c93ec
Author: Pascal Schumacher <pa...@gmx.net>
AuthorDate: Sun Sep 27 17:45:59 2020 +0200

    OptaPlannerProducer: Add missing log message argument
---
 .../org/apache/camel/component/optaplanner/OptaPlannerProducer.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
index 0f539fe..e4a4a04 100644
--- a/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
+++ b/components/camel-optaplanner/src/main/java/org/apache/camel/component/optaplanner/OptaPlannerProducer.java
@@ -154,8 +154,8 @@ public class OptaPlannerProducer extends DefaultAsyncProducer {
         final SolverManager solverManager = getSolverManager(exchange);
 
         if (body.getClass().isAnnotationPresent(PlanningSolution.class)) {
-            LOGGER.debug("Asynchronously solving problem: [{}] with id [{}]", body);
             Long problemId = endpoint.getConfiguration().getProblemId();
+            LOGGER.debug("Asynchronously solving problem: [{}] with id [{}]", body, problemId);
             if (isAsync(exchange)) {
                 executor.submit(() -> {
                     try {