fix an unnecessary error log.

This commit is contained in:
wusheng 2016-12-07 10:02:06 +08:00
parent d0d0041a00
commit 3be4fb38e0
2 changed files with 4 additions and 3 deletions

View File

@ -76,9 +76,9 @@ public class ConfigInitializer {
private static InputStream fetchAuthFileInputStream() {
try {
return new FileInputStream(Config.SkyWalking.AGENT_BASE_PATH + File.separator + "/sky-walking.auth");
return new FileInputStream(Config.SkyWalking.AGENT_BASE_PATH + File.separator + "/sky-walking.config");
} catch (Exception e) {
logger.error("Error to fetch auth file input stream.", e);
logger.warn("sky-walking.config is missing, use default config.");
return null;
}
}

View File

@ -1,5 +1,6 @@
package com.a.eye.skywalking.logging;
import com.a.eye.skywalking.logging.api.ILog;
import com.a.eye.skywalking.logging.api.LogResolver;
/**
@ -7,7 +8,7 @@ import com.a.eye.skywalking.logging.api.LogResolver;
*/
public class EasyLogResolver implements LogResolver {
@Override
public com.a.eye.skywalking.logging.api.ILog getLogger(Class<?> clazz) {
public ILog getLogger(Class<?> clazz) {
return new EasyLogger(clazz);
}
}