ARTEMIS-2234 fix warning from LoggingConfigurationFileReloader

return the LogContextConfiguration if we have one
This commit is contained in:
Emmanuel Hugonnet 2019-01-21 18:16:09 +01:00 committed by Justin Bertram
parent 65d01a4f91
commit 8b272bd1c8
1 changed files with 3 additions and 0 deletions

View File

@ -81,6 +81,9 @@ public class LoggingConfigurationFileReloader implements ReloadCallback {
if (configurator instanceof PropertyConfigurator) {
return ((PropertyConfigurator) configurator).getLogContextConfiguration();
}
if (configurator instanceof LogContextConfiguration) {
return (LogContextConfiguration) configurator;
}
return null;
}
}