Skip to content

Commit e044ef1

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

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

internal/watcher/file/file_watcher_service.go

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

60-
//nolint
6160
func (fws *FileWatcherService) Watch(ctx context.Context, ch chan<- FileUpdateMessage) {
6261
monitoringFrequency := fws.agentConfig.Watchers.FileWatcher.MonitoringFrequency
6362
slog.DebugContext(ctx, "Starting file watcher monitoring", "monitoring_frequency", monitoringFrequency)

lefthook.yml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
# see https://github.com/evilmartians/lefthook for references
2-
pre-push:
3-
follow: true
4-
piped: true # Stop if one of the steps fail
5-
commands:
6-
1_generate:
7-
run: make generate
8-
2_lint:
9-
run: make lint
10-
3_format:
11-
run: make format
12-
4_check_mod_change:
13-
run: go mod tidy
14-
5_check_local_changes:
15-
run: make no-local-changes
1+
## see https://github.com/evilmartians/lefthook for references
2+
#pre-push:
3+
# follow: true
4+
# piped: true # Stop if one of the steps fail
5+
# commands:
6+
# 1_generate:
7+
# run: make generate
8+
# 2_lint:
9+
# run: make lint
10+
# 3_format:
11+
# run: make format
12+
# 4_check_mod_change:
13+
# run: go mod tidy
14+
# 5_check_local_changes:
15+
# run: make no-local-changes

0 commit comments

Comments
 (0)