Skip to content

Commit 3aeaf92

Browse files
Make log record on 'channel closed' more verbose (#280)
1 parent ff9c956 commit 3aeaf92

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

publish-common/src/main/java/com/ericsson/eiffel/remrem/publish/helper/RabbitMqProperties.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,10 +346,11 @@ private Channel createNewChannel() throws IOException {
346346
public void shutdownCompleted(ShutdownSignalException cause) {
347347
// Beware that proper synchronization is needed here
348348
if (cause.isInitiatedByApplication()) {
349-
log.debug("Shutdown is initiated by application. Ignoring it.");
349+
log.info("Shutdown of MB channel is initiated by application; ignoring it: "
350+
+ cause.getMessage());
350351
} else {
351-
log.error("Shutdown is NOT initiated by application.");
352-
log.error(cause.getMessage());
352+
log.error("Shutdown of MB channel is NOT initiated by application: "
353+
+ cause.getMessage());
353354
boolean cliMode = Boolean.getBoolean(PropertiesConfig.CLI_MODE);
354355
if (cliMode) {
355356
System.exit(-3);

0 commit comments

Comments
 (0)