Skip to content

Commit 2b7f506

Browse files
committed
refactor: improve logging for ct-watcher
1 parent 948ea7c commit 2b7f506

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/certificatetransparency/ct-watcher.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func (w *worker) startDownloadingCerts(ctx context.Context) {
167167
w.ctURL = "https://" + w.ctURL
168168
}
169169

170-
log.Printf("Starting worker for CT log: %s\n", w.ctURL)
170+
log.Printf("Initializing worker for CT log: %s\n", w.ctURL)
171171
defer log.Printf("Stopping worker for CT log: %s\n", w.ctURL)
172172

173173
w.mu.Lock()
@@ -182,6 +182,7 @@ func (w *worker) startDownloadingCerts(ctx context.Context) {
182182
w.mu.Unlock()
183183

184184
for {
185+
log.Printf("Starting worker for CT log: %s\n", w.ctURL)
185186
workerErr := w.runWorker(ctx)
186187
if workerErr != nil {
187188
if errors.Is(workerErr, errFetchingSTHFailed) {
@@ -246,7 +247,7 @@ func (w *worker) runWorker(ctx context.Context) error {
246247
return scanErr
247248
}
248249

249-
log.Println("No error from certScanner!")
250+
log.Printf("Exiting worker %s without error!\n", w.ctURL)
250251

251252
return nil
252253
}

0 commit comments

Comments
 (0)