Skip to content

Commit 2de402b

Browse files
committed
refactor: refactor logging and testing mechanisms across the codebase
- Remove `os.Exit(1)` call from the `Fatal` function in `slog.go` Signed-off-by: appleboy <[email protected]>
1 parent cc1f45b commit 2de402b

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

slog/slog.go

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func (l Manager) Error(args ...interface{}) {
4848

4949
func (l Manager) Fatal(args ...interface{}) {
5050
l.logger.ErrorContext(context.Background(), l.addCallerInfo(fmt.Sprint(args...)))
51-
os.Exit(1)
5251
}
5352

5453
func (l Manager) Debug(args ...interface{}) {

0 commit comments

Comments
 (0)