Skip to content

Commit

Permalink
Suppress stack trace on HostSudoers handled error (#47887)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcoandredinis authored Oct 28, 2024
1 parent eb09aa8 commit 6070e81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/srv/usermgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func NewHostSudoers(uuid string) HostSudoers {
backend, err := newHostSudoersBackend(uuid)
switch {
case trace.IsNotImplemented(err):
slog.DebugContext(context.Background(), "Skipping host sudoers management", "error", err)
slog.DebugContext(context.Background(), "Skipping host sudoers management", "error", err.Error())
return nil
case err != nil: //nolint:staticcheck // linter fails on non-linux system as only linux implementation returns useful values.
slog.DebugContext(context.Background(), "Error making new HostSudoersBackend", "error", err)
Expand Down

0 comments on commit 6070e81

Please sign in to comment.