adding closeable hooks

This commit is contained in:
Mark Wolters 2024-03-28 14:19:40 -04:00 committed by Jonathan Shook
parent 5df093942a
commit 8abb35b818

View File

@ -143,7 +143,6 @@ public class NBSession extends NBHeartbeatComponent implements Function<List<Cmd
HistoIntervalLogger histoIntervalLogger =
new HistoIntervalLogger(this, sessionName, logfile, compiledPattern, millis);
logger.debug(() -> "Adding " + histoIntervalLogger + " to session " + sessionName);
//get().addListener(histoIntervalLogger);
metricsCloseables.add(histoIntervalLogger);
}
@ -157,7 +156,6 @@ public class NBSession extends NBHeartbeatComponent implements Function<List<Cmd
HistoStatsLogger histoStatsLogger =
new HistoStatsLogger(this, sessionName, logfile, compiledPattern, millis, TimeUnit.NANOSECONDS);
logger.debug(() -> "Adding " + histoStatsLogger + " to session " + sessionName);
// get().addListener(histoStatsLogger);
metricsCloseables.add(histoStatsLogger);
}