Skip to content

Commit fa16540

Browse files
committed
test
1 parent 9e24492 commit fa16540

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

internal/watcher/watcher_plugin.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ func (w *Watcher) handleConfigApplySuccess(ctx context.Context, msg *bus.Message
168168

169169
instanceID := response.GetInstanceId()
170170

171+
slog.Info("handleConfigApplySuccess start")
171172
w.watcherMutex.Lock()
172173
defer w.watcherMutex.Unlock()
173174
w.instancesWithConfigApplyInProgress = slices.DeleteFunc(
@@ -179,6 +180,7 @@ func (w *Watcher) handleConfigApplySuccess(ctx context.Context, msg *bus.Message
179180
w.fileWatcherService.SetEnabled(true)
180181

181182
w.instanceWatcherService.ReparseConfig(ctx, instanceID)
183+
slog.Info("handleConfigApplySuccess done")
182184
}
183185

184186
func (w *Watcher) handleHealthRequest(ctx context.Context) {
@@ -219,8 +221,8 @@ func (w *Watcher) monitorWatchers(ctx context.Context) {
219221
w.handleInstanceUpdates(newCtx, message)
220222
case message := <-w.nginxConfigContextChannel:
221223
newCtx := context.WithValue(ctx, logger.CorrelationIDContextKey, message.CorrelationID)
222-
slog.Info("============= Nginx Config Context Channel")
223224
w.watcherMutex.Lock()
225+
slog.Info("============= Nginx Config Context Channel")
224226
if !slices.Contains(w.instancesWithConfigApplyInProgress, message.NginxConfigContext.InstanceID) {
225227
slog.Info("============= Nginx Config Context update")
226228
slog.DebugContext(

0 commit comments

Comments
 (0)