Skip to content

Commit 4fe1f6a

Browse files
committed
test
1 parent 535bd19 commit 4fe1f6a

File tree

3 files changed

+1
-22
lines changed

3 files changed

+1
-22
lines changed

internal/watcher/health/health_watcher_service.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -202,22 +202,6 @@ func (hw *HealthWatcherService) compareHealth(currentHealth map[string]*mpi.Inst
202202
defer hw.healthWatcherMutex.Unlock()
203203

204204
if len(currentHealth) != len(hw.cache) {
205-
for _, i := range hw.cache {
206-
slog.Info("Health of Instance Current")
207-
slog.Info("Instance ID", "", i.GetInstanceId())
208-
slog.Info("Instance Status", "", i.GetInstanceHealthStatus())
209-
slog.Info("Instance Description", "", i.GetDescription())
210-
}
211-
212-
slog.Info("======================")
213-
for _, i := range currentHealth {
214-
slog.Info("Health of Instance New")
215-
slog.Info("Instance ID", "", i.GetInstanceId())
216-
slog.Info("Instance Status", "", i.GetInstanceHealthStatus())
217-
slog.Info("Instance Description", "", i.GetDescription())
218-
}
219-
slog.Info("Len of cache different in health watcher cache")
220-
221205
return true
222206
}
223207

internal/watcher/instance/instance_watcher_service.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,6 @@ func (iw *InstanceWatcherService) checkForUpdates(
181181

182182
for _, newInstance := range instancesToParse {
183183
instanceType := newInstance.GetInstanceMeta().GetInstanceType()
184-
slog.Info("================================================== ")
185184
slog.InfoContext(
186185
newCtx,
187186
"Parsing instance config",

internal/watcher/watcher_plugin.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,16 +170,15 @@ func (w *Watcher) handleConfigApplySuccess(ctx context.Context, msg *bus.Message
170170

171171
slog.Info("handleConfigApplySuccess start")
172172
w.watcherMutex.Lock()
173-
// defer w.watcherMutex.Unlock()
174173
w.instancesWithConfigApplyInProgress = slices.DeleteFunc(
175174
w.instancesWithConfigApplyInProgress,
176175
func(element string) bool {
177176
return element == instanceID
178177
},
179178
)
180179
w.fileWatcherService.SetEnabled(true)
181-
182180
w.watcherMutex.Unlock()
181+
183182
w.instanceWatcherService.ReparseConfig(ctx, instanceID)
184183
slog.Info("handleConfigApplySuccess done")
185184
}
@@ -223,9 +222,7 @@ func (w *Watcher) monitorWatchers(ctx context.Context) {
223222
case message := <-w.nginxConfigContextChannel:
224223
newCtx := context.WithValue(ctx, logger.CorrelationIDContextKey, message.CorrelationID)
225224
w.watcherMutex.Lock()
226-
slog.Info("============= Nginx Config Context Channel")
227225
if !slices.Contains(w.instancesWithConfigApplyInProgress, message.NginxConfigContext.InstanceID) {
228-
slog.Info("============= Nginx Config Context update")
229226
slog.DebugContext(
230227
newCtx,
231228
"Updated NGINX config context",
@@ -244,7 +241,6 @@ func (w *Watcher) monitorWatchers(ctx context.Context) {
244241
)
245242
}
246243
w.watcherMutex.Unlock()
247-
slog.Info("============= Nginx Config Unlock")
248244
case message := <-w.instanceHealthChannel:
249245
newCtx := context.WithValue(ctx, logger.CorrelationIDContextKey, message.CorrelationID)
250246
w.messagePipe.Process(newCtx, &bus.Message{

0 commit comments

Comments
 (0)