Skip to content

Commit

Permalink
refactor: refactor logging and testing mechanisms across the codebase
Browse files Browse the repository at this point in the history
- Remove `os.Exit(1)` call from the `Fatal` function in `slog.go`

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Jan 24, 2025
1 parent cc1f45b commit 2de402b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion slog/slog.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ func (l Manager) Error(args ...interface{}) {

func (l Manager) Fatal(args ...interface{}) {
l.logger.ErrorContext(context.Background(), l.addCallerInfo(fmt.Sprint(args...)))
os.Exit(1)
}

func (l Manager) Debug(args ...interface{}) {
Expand Down

0 comments on commit 2de402b

Please sign in to comment.