Skip to content

Commit bfc916e

Browse files
authored
fix: clear logging (#131)
1 parent fc140f7 commit bfc916e

File tree

1 file changed

+4
-0
lines changed
  • src/main/java/io/supertokens/storage/postgresql/output

1 file changed

+4
-0
lines changed

src/main/java/io/supertokens/storage/postgresql/output/Logging.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,10 @@ public static void stopLogging(Start start) {
166166
if (getInstance(start) == null) {
167167
return;
168168
}
169+
getInstance(start).infoLogger.getLoggerContext().stop();
170+
getInstance(start).errorLogger.getLoggerContext().stop();
171+
getInstance(start).infoLogger.getLoggerContext().getStatusManager().clear();
172+
getInstance(start).errorLogger.getLoggerContext().getStatusManager().clear();
169173
getInstance(start).infoLogger.detachAndStopAllAppenders();
170174
getInstance(start).errorLogger.detachAndStopAllAppenders();
171175
}

0 commit comments

Comments
 (0)