Skip to content

Commit

Permalink
Structured logging
Browse files Browse the repository at this point in the history
  • Loading branch information
pinikomarov committed Nov 7, 2023
1 parent dc23c0d commit a89a0bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion controllers/glance_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ type GlanceReconciler 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 *GlanceReconciler) GetLogger(ctx context.Context) logr.Logger {
return log.FromContext(ctx).WithName("Controllers").WithName("Glance")
}
Expand Down
2 changes: 1 addition & 1 deletion controllers/glanceapi_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ type GlanceAPIReconciler 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 *GlanceAPIReconciler) GetLogger(ctx context.Context) logr.Logger {
return log.FromContext(ctx).WithName("Controllers").WithName("GlanceAPI")
}
Expand Down

0 comments on commit a89a0bf

Please sign in to comment.