Skip to content

Commit bcb5408

Browse files
committed
add more logs for debug
1 parent 5d2a7df commit bcb5408

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/watcher/file/file_watcher_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ func NewFileWatcherService(agentConfig *config.Config) *FileWatcherService {
5757
}
5858
}
5959

60+
//nolint
6061
func (fws *FileWatcherService) Watch(ctx context.Context, ch chan<- FileUpdateMessage) {
6162
monitoringFrequency := fws.agentConfig.Watchers.FileWatcher.MonitoringFrequency
6263
slog.DebugContext(ctx, "Starting file watcher monitoring", "monitoring_frequency", monitoringFrequency)
@@ -88,7 +89,6 @@ func (fws *FileWatcherService) Watch(ctx context.Context, ch chan<- FileUpdateMe
8889
} else {
8990
slog.DebugContext(ctx, "Skipping check for file updates, file watcher is disabled")
9091
}
91-
9292
}
9393

9494
if fws.watcher != nil {

0 commit comments

Comments
 (0)