list by pages and rate req limits
This commit is contained in:
@ -34,6 +34,10 @@ func LogError(ctx context.Context, log *slog.Logger, msg string, attrs ...slog.A
|
||||
log.LogAttrs(ctx, slog.LevelError, msg, append(attrs, getLogFields(ctx)...)...)
|
||||
}
|
||||
|
||||
func LogWithWarnError(ctx context.Context, log *slog.Logger, err error, msg string, attrs ...slog.Attr) {
|
||||
LogWarn(ctx, log, msg, append(attrs, slog.Any("err", err))...)
|
||||
}
|
||||
|
||||
func LogWithError(ctx context.Context, log *slog.Logger, err error, msg string, attrs ...slog.Attr) {
|
||||
LogError(ctx, log, msg, append(attrs, slog.Any("err", err))...)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user