Skip to content

Commit

Permalink
fix log message
Browse files Browse the repository at this point in the history
Signed-off-by: wfan <wfan@lycorp.co.jp>
  • Loading branch information
WindzCUHK committed Mar 19, 2024
1 parent 9c57744 commit 86b7e67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/development/mode=refresh.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ INFO[2024-03-18T18:30:10+09:00] Initiating shutdown of health check daemon ...
INFO[2024-03-18T18:30:10+09:00] Stopped health check server
INFO[2024-03-18T18:30:10+09:00] Initiating shutdown of metrics exporter daemon ...
INFO[2024-03-18T18:30:10+09:00] Stopped metrics exporter server
INFO[2024-03-18T18:30:20+09:00] Skipped to refresh cached tokens within 20s
INFO[2024-03-18T18:30:20+09:00] Skipped to refresh cached tokens
INFO[2024-03-18T18:30:20+09:00] Will refresh cached tokens within 20s
INFO[2024-03-18T18:30:30+09:00] Initiating shutdown of token provider daemon ...
INFO[2024-03-18T18:30:30+09:00] Delaying token provider server shutdown for 0s to shutdown gracefully ...
Expand Down
2 changes: 1 addition & 1 deletion pkg/token/daemon.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func (ts *tokenService) Start(ctx context.Context) error {
case <-t.C:
// skip refresh if context is done but Shutdown() is not called
if ctx.Err() != nil {
log.Infof("Skipped to refresh cached tokens within %s", ts.tokenRefresh.String())
log.Info("Skipped to refresh cached tokens")
continue
}

Expand Down

0 comments on commit 86b7e67

Please sign in to comment.