Skip to content

Commit

Permalink
fix: cli logging
Browse files Browse the repository at this point in the history
Signed-off-by: Rodney Osodo <[email protected]>
  • Loading branch information
rodneyosodo committed Dec 11, 2024
1 parent 877ad70 commit ef6eaa3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion propellerd/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package propellerd

import (
"context"
"log/slog"
"time"

"github.com/absmach/magistrala/pkg/server"
Expand Down Expand Up @@ -40,7 +41,7 @@ var managerCmd = []cobra.Command{
}
ctx, cancel := context.WithCancel(cmd.Context())
if err := manager.StartManager(ctx, cancel, cfg); err != nil {
cmd.PrintErrf("failed to start manager: %s", err.Error())
slog.Error("failed to start manager", slog.String("error", err.Error()))
}
cancel()
},
Expand Down

0 comments on commit ef6eaa3

Please sign in to comment.