feat(REQ-5865) - 细化日志内容
This commit is contained in:
parent
4ec43e1f9c
commit
a603654dcc
@ -40,9 +40,9 @@ public class CustomCommandContext extends CommandContext {
|
|||||||
|
|
||||||
} else if (exception instanceof FlowableException && ((FlowableException) exception).isReduceLogLevel()) {
|
} else if (exception instanceof FlowableException && ((FlowableException) exception).isReduceLogLevel()) {
|
||||||
// reduce log level, because this may have been caused because of job deletion due to cancelActiviti="true"
|
// reduce log level, because this may have been caused because of job deletion due to cancelActiviti="true"
|
||||||
LOGGER.info("Error while closing command context", exception);
|
LOGGER.info("Error while closing command context: {}", exception.getMessage(), exception);
|
||||||
} else if (exception instanceof WorkflowEngineException) {
|
} else if (exception instanceof WorkflowEngineException) {
|
||||||
LOGGER.warn("Workflow error while closing command context", exception);
|
LOGGER.warn("Workflow error while closing command context: {}", exception.getMessage(), exception);
|
||||||
} else if (exception instanceof PersistenceException) {
|
} else if (exception instanceof PersistenceException) {
|
||||||
Throwable rootCause = getRootCause(exception);
|
Throwable rootCause = getRootCause(exception);
|
||||||
if (rootCause instanceof MySQLTransactionRollbackException) {
|
if (rootCause instanceof MySQLTransactionRollbackException) {
|
||||||
@ -53,7 +53,7 @@ public class CustomCommandContext extends CommandContext {
|
|||||||
LOGGER.warn("persistence error while closing command context:{}", exception.getMessage(), exception);
|
LOGGER.warn("persistence error while closing command context:{}", exception.getMessage(), exception);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
LOGGER.error("Error while closing command context", exception);
|
LOGGER.error("Error while closing command context: {}", exception.getMessage(), exception);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user