Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit cfb11b3

Browse files
authored
Update provision nginx log statement to be more clear (#3968)
The current provision nginx log statement doesn't state the object names for the objects that are being updated, only the name of the nginx resource. This change includes the object names in the log so users can see what resources are being updated.
1 parent 4fb351e commit cfb11b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎internal/controller/provisioner/provisioner.go‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,10 +224,16 @@ func (p *NginxProvisioner) provisionNginx(
224224
return nil
225225
}
226226

227+
objNames := make([]string, 0, len(objects))
228+
for _, obj := range objects {
229+
objNames = append(objNames, obj.GetName())
230+
}
231+
227232
p.cfg.Logger.Info(
228233
"Creating/Updating nginx resources",
229234
"namespace", gateway.GetNamespace(),
230-
"name", resourceName,
235+
"nginx resource name", resourceName,
236+
"resource names", objNames,
231237
)
232238

233239
var agentConfigMapUpdated, deploymentCreated bool

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /