Fix log message

Closes gh-4969
This commit is contained in:
Stephane Nicoll 2016-01-19 09:38:25 +01:00
parent c57588ac09
commit 46470934d7
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -107,7 +107,7 @@ public class LogbackLoggingSystem extends Slf4JLoggingSystem {
if (StringUtils.hasText(System.getProperty(CONFIGURATION_FILE_PROPERTY))) {
getLogger(LogbackLoggingSystem.class.getName()).warn(
"Ignoring '" + CONFIGURATION_FILE_PROPERTY + "' system property. "
+ "Please use 'logging.path' instead.");
+ "Please use 'logging.config' instead.");
}
}

View File

@ -1,5 +1,5 @@
/*
* Copyright 2012-2015 the original author or authors.
* Copyright 2012-2016 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -149,7 +149,7 @@ public class LogbackLoggingSystemTests extends AbstractLoggingSystemTests {
this.loggingSystem.initialize(this.initializationContext, null, null);
String output = this.output.toString().trim();
assertTrue("Wrong output:\n" + output, output.contains("Ignoring "
+ "'logback.configurationFile' system property. Please use 'logging.path' instead."));
+ "'logback.configurationFile' system property. Please use 'logging.config' instead."));
}
finally {
System.clearProperty("logback.configurationFile");