Skip to content

Commit 7b86299

Browse files
committed
clean up
1 parent 30b4da7 commit 7b86299

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ TAG ?= ""
3737

3838
BUILD_DIR := build
3939
TEST_BUILD_DIR := build/test
40-
CERTS_DIR := build/certs
41-
40+
CERTS_DIR := build/certs
4241
DOCS_DIR := docs
4342
PROTO_DIR := proto
4443
BINARY_NAME := nginx-agent

internal/resource/nginx_instance_operator.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ func (i *NginxInstanceOperator) Reload(ctx context.Context, instance *mpi.Instan
106106
}
107107
}
108108

109-
slog.InfoContext(ctx, "All NGINX workers have been reloaded", "worker_count", len(currentWorkers))
110-
111109
return nil
112110
})
113111
if err != nil {
114-
slog.WarnContext(ctx, "Failed to check if NGINX worker processes have successfully reloaded",
115-
"error", err)
112+
slog.WarnContext(ctx, "Failed to check if NGINX worker processes have successfully reloaded, "+
113+
"timed out waiting", "error", err)
114+
} else {
115+
slog.InfoContext(ctx, "All NGINX workers have been reloaded")
116116
}
117117

118118
slog.InfoContext(ctx, "NGINX reloaded", "processid", instance.GetInstanceRuntime().GetProcessId())

0 commit comments

Comments
 (0)