Skip to content

Commit

Permalink
Remove useless logs
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
  • Loading branch information
geofjamg committed Oct 11, 2023
1 parent 21a2774 commit c633475
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public final class LoggingCFunctions {
private LoggingCFunctions() {
}

interface LoggerCallback extends CFunctionPointer {
public interface LoggerCallback extends CFunctionPointer {
@InvokeCFunctionPointer
void invoke(int level, long timestamp, CCharPointer loggerName, CCharPointer message);
}
Expand All @@ -47,8 +47,8 @@ public static void setupLoggerCallback(IsolateThread thread, LoggerCallback fpoi
@CEntryPoint(name = "setLogLevel")
public static void setLogLevel(IsolateThread thread, int logLevel, PyPowsyblApiHeader.ExceptionHandlerPointer exceptionHandlerPtr) {
doCatch(exceptionHandlerPtr, () -> {
Logger rootLogger = (Logger) LoggerFactory.getLogger(org.slf4j.Logger.ROOT_LOGGER_NAME);
rootLogger.setLevel(PyLoggingUtil.pythonLevelToLogbackLevel(logLevel));
Logger powsyblLogger = (Logger) LoggerFactory.getLogger("com.powsybl");
powsyblLogger.setLevel(PyLoggingUtil.pythonLevelToLogbackLevel(logLevel));
});
}
}
3 changes: 3 additions & 0 deletions java/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,7 @@
<logger name="org.nocrala.tools.texttablefmt" level="ERROR" additivity="false">
<appender-ref ref="custom" />
</logger>
<logger name="com.powsybl.triplestore" level="INFO" additivity="false">
<appender-ref ref="custom" />
</logger>
</configuration>

0 comments on commit c633475

Please sign in to comment.