fix an unnecessary error log.
This commit is contained in:
parent
d0d0041a00
commit
3be4fb38e0
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue