Skip to content

Commit

Permalink
rename EnvUtil.ourVersion as logbackVersion
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Aug 22, 2022
1 parent 255af5a commit 417db91
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void autoConfig() throws JoranException {
}

public void autoConfig(ClassLoader classLoader) throws JoranException {
String versionStr = EnvUtil.ourVersion();
String versionStr = EnvUtil.logbackVersion();
loggerContext.getStatusManager().add(new InfoStatus(CoreConstants.LOGBACK_CLASSIC_VERSION_MESSAGE + versionStr, loggerContext));
StatusListenerConfigHelper.installIfAsked(loggerContext);
List<Configurator> configuratorList = ClassicEnvUtil.loadFromServiceLoader(Configurator.class, classLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class EnvUtilTest {
// is added when creating the jar.
@Test
public void versionTest() {
String versionStr = EnvUtil.ourVersion();
String versionStr = EnvUtil.logbackVersion();
assertNotNull(versionStr);
assertTrue(versionStr.startsWith("1.3"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
*/
package ch.qos.logback.core.util;

import ch.qos.logback.core.CoreConstants;

/**
* @author Ceki G&uuml;lc&uuml;
*/
Expand All @@ -31,7 +29,7 @@ private EnvUtil() {
* @since 1.3.0
* @return current version or null if missing version data
*/
static public String ourVersion() {
static public String logbackVersion() {
Package pkg = EnvUtil.class.getPackage();
if(pkg == null) {
return null;
Expand Down

0 comments on commit 417db91

Please sign in to comment.