Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
update logging

update logging

update logging fixup lint

update logging

update logging

update logging fixup lint

Structured logging
  • Loading branch information
pinikomarov committed Dec 5, 2023
1 parent f5c5a01 commit 1b63269
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion controllers/openstackdataplanedeployment_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ type OpenStackDataPlaneDeploymentReconciler struct {
Scheme *runtime.Scheme
}

// Getlogger returns a logger object with a prefix of "conroller.name" and aditional controller context fields
// GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields
func (r *OpenStackDataPlaneDeploymentReconciler) GetLogger(ctx context.Context) logr.Logger {
return log.FromContext(ctx).WithName("Controllers").WithName("OpenStackDataPlaneDeployment")
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/openstackdataplanenodeset_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type OpenStackDataPlaneNodeSetReconciler struct {
Scheme *runtime.Scheme
}

// Getlogger returns a logger object with a prefix of "conroller.name" and aditional controller context fields
// GetLogger returns a logger object with a prefix of "controller.name" and additional controller context fields
func (r *OpenStackDataPlaneNodeSetReconciler) GetLogger(ctx context.Context) logr.Logger {
return log.FromContext(ctx).WithName("Controllers").WithName("OpenStackDataPlaneNodeSet")
}
Expand Down
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ func main() {
"Enabling this will ensure there is only one active controller manager.")
devMode, err := strconv.ParseBool(os.Getenv("DEV_MODE"))
if err != nil {
devMode = false
devMode = true
}
opts := zap.Options{
Development: devMode,
Expand Down

0 comments on commit 1b63269

Please sign in to comment.