Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
0de75a87
Unverified
Commit
0de75a87
authored
Dec 13, 2025
by
bin.pan
Committed by
GitHub
Dec 12, 2025
Browse files
fix: Initialize logger earlier to capture startup logs (#3570)
Signed-off-by:
bin
<
bin.pan@daocloud.io
>
parent
32bfc0f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
deploy/cloud/operator/cmd/main.go
deploy/cloud/operator/cmd/main.go
+1
-1
No files found.
deploy/cloud/operator/cmd/main.go
View file @
0de75a87
...
...
@@ -208,6 +208,7 @@ func main() {
}
opts
.
BindFlags
(
flag
.
CommandLine
)
flag
.
Parse
()
ctrl
.
SetLogger
(
zap
.
New
(
zap
.
UseFlagOptions
(
&
opts
)))
if
restrictedNamespace
==
""
&&
plannerClusterRoleName
==
""
{
setupLog
.
Error
(
nil
,
"planner-cluster-role-name is required in cluster-wide mode"
)
...
...
@@ -277,7 +278,6 @@ func main() {
}
mainCtx
:=
ctrl
.
SetupSignalHandler
()
ctrl
.
SetLogger
(
zap
.
New
(
zap
.
UseFlagOptions
(
&
opts
)))
// if the enable-http2 flag is false (the default), http/2 should be disabled
// due to its vulnerabilities. More specifically, disabling http/2 will
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment