Skip to content

Commit 047f406

Browse files
committed
more logs
1 parent 7afdfa7 commit 047f406

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

internal/file/file_plugin.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,11 @@ func (fp *FilePlugin) handleReloadSuccess(ctx context.Context, msg *bus.Message)
200200
fp.enableWatchers(ctx, successMessage.ConfigContext, successMessage.DataPlaneResponse.GetInstanceId())
201201

202202
if successMessage.ConfigContext.Files != nil {
203+
slog.InfoContext(ctx, "New handleReloadSuccess", "config", successMessage.ConfigContext.Files)
204+
for _, file := range successMessage.ConfigContext.Files {
205+
slog.DebugContext(ctx, "Config context Updating file", "file", file.GetFileMeta().GetName(), "unmanaged", file.GetUnmanaged())
206+
}
207+
203208
slog.DebugContext(ctx, "Changes made during config apply, update files on disk")
204209
updateError := fp.fileManagerService.UpdateCurrentFilesOnDisk(
205210
ctx,

internal/resource/resource_service.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,10 @@ func (r *ResourceService) ApplyConfig(ctx context.Context, instanceID string) (*
239239

240240
slog.DebugContext(ctx, "Updated Instance Runtime after reloading NGINX", "instance", instance.GetInstanceRuntime())
241241

242+
slog.InfoContext(ctx, "New Nginx config Context in Apply Config", "config", nginxConfigContext.Files)
243+
for _, file := range nginxConfigContext.Files {
244+
slog.DebugContext(ctx, "Config context Updating file", "file", file.GetFileMeta().GetName(), "unmanaged", file.GetUnmanaged())
245+
}
242246
return nginxConfigContext, nil
243247
}
244248

0 commit comments

Comments
 (0)