Skip to content

Commit

Permalink
Fixes timezone spam (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
StrongestNumber9 authored Jul 20, 2023
1 parent de2cd52 commit 80367e2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/main/java/com/teragrep/k8s_01/K8SConsumer.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ public class K8SConsumer implements Consumer<FileRecord> {
this.cacheClient = cacheClient;
this.relpOutputPool = relpOutputPool;
this.timezoneId = ZoneId.of(appConfig.getKubernetes().getTimezone());
LOGGER.info("Using {} as log timezone", timezoneId);
}
@Override
public void accept(FileRecord record) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ class KubernetesCachingAPIClient {
config.getCacheMaxEntries(),
config.getCacheExpireInterval()
);
LOGGER.info(
"Using {} as timezone for logfiles.",
config.getTimezone()
);
try {
ApiClient client = Config.fromCluster();
client.setBasePath(config.getUrl());
Expand Down

0 comments on commit 80367e2

Please sign in to comment.