Skip to content

Commit 5bb860f

Browse files
committed
clean up
1 parent 8ce4ffd commit 5bb860f

File tree

5 files changed

+2
-11
lines changed

5 files changed

+2
-11
lines changed

internal/datasource/host/exec/exec.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ func (*Exec) ProcessID() int32 {
5656
}
5757

5858
func (*Exec) KillProcess(pid int32) error {
59-
slog.Info("Kill PRocess")
6059
return syscall.Kill(int(pid), syscall.SIGHUP)
6160
}
6261

internal/resource/nginx_instance_operator.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,13 +112,10 @@ func (i *NginxInstanceOperator) errorLogs(instance *mpi.Instance) (errorLogs []s
112112
errorLogs = instance.GetInstanceRuntime().GetNginxRuntimeInfo().GetErrorLogs()
113113
}
114114

115-
slog.Info("Error Logs", "", errorLogs)
116-
117115
return errorLogs
118116
}
119117

120118
func (i *NginxInstanceOperator) monitorLogs(ctx context.Context, errorLogs []string, errorChannel chan error) {
121-
slog.Info("Monitoring Logs")
122119
if len(errorLogs) == 0 {
123120
slog.InfoContext(ctx, "No NGINX error logs found to monitor")
124121
return

internal/resource/nginx_log_tailer_operator.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ func NewLogTailerOperator(agentConfig *config.Config) *NginxLogTailerOperator {
3939
}
4040

4141
func (l *NginxLogTailerOperator) Tail(ctx context.Context, errorLog string, errorChannel chan error) {
42-
slog.Info("Tailing Logs")
4342
t, err := nginx.NewTailer(errorLog)
4443
if err != nil {
4544
slog.ErrorContext(ctx, "Unable to tail error log after NGINX reload", "log_file", errorLog, "error", err)
@@ -48,8 +47,7 @@ func (l *NginxLogTailerOperator) Tail(ctx context.Context, errorLog string, erro
4847

4948
return
5049
}
51-
52-
slog.Info("Monitoring Period", "", l.agentConfig.DataPlaneConfig.Nginx.ReloadMonitoringPeriod)
50+
5351
ctxWithTimeout, cancel := context.WithTimeout(ctx, l.agentConfig.DataPlaneConfig.Nginx.ReloadMonitoringPeriod)
5452
defer cancel()
5553

internal/watcher/health/health_watcher_service.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,6 @@ func (hw *HealthWatcherService) compareHealth(currentHealth map[string]*mpi.Inst
211211
return true
212212
}
213213
}
214-
215-
slog.Info("No difference in health")
216-
214+
217215
return false
218216
}

internal/watcher/watcher_plugin.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ func (w *Watcher) handleConfigApplyRequest(ctx context.Context, msg *bus.Message
153153

154154
w.watcherMutex.Lock()
155155
defer w.watcherMutex.Unlock()
156-
slog.Info("Apply In Progress Set")
157156
w.instancesWithConfigApplyInProgress = append(w.instancesWithConfigApplyInProgress, instanceID)
158157
w.fileWatcherService.SetEnabled(false)
159158
}

0 commit comments

Comments
 (0)