- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for logIgnoreError (0.2 sec)
-
internal/logger/utils.go
ansiEscape("7") } } func ansiRestoreAttributes() { if runtime.GOOS == "windows" { return } if color.IsTerminal() { ansiEscape("8") } } // logIgnoreError if true,the error will ignore. func logIgnoreError(err error) bool { return err == nil || errors.Is(err, context.Canceled) || errors.Is(err, http.ErrServerClosed) || err.Error() == "drive not found"
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Aug 04 23:10:08 GMT 2022 - 1.7K bytes - Viewed (0) -
internal/logger/logonce.go
if logIgnoreError(err) { return } logOnce.logOnceIf(ctx, subsystem, err, id, errKind...) } // LogOnceConsoleIf - similar to LogOnceIf but exclusively only logs to console target. func LogOnceConsoleIf(ctx context.Context, subsystem string, err error, id string, errKind ...interface{}) { if logIgnoreError(err) { return }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 3.8K bytes - Viewed (0) -
internal/logger/logger.go
if logIgnoreError(err) { return } logIf(ctx, subsystem, err, errKind...) } // LogIfNot prints a detailed error message during // the execution of the server, if it is not an ignored error (either internal or given). func LogIfNot(ctx context.Context, subsystem string, err error, ignored ...error) { if logIgnoreError(err) { return }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 12.4K bytes - Viewed (0)