searcherside/infrastructure/logging/error.go

8 lines
112 B
Go
Raw Normal View History

2024-06-06 20:08:51 +00:00
package logging
import "log/slog"
func Error(err error) slog.Attr {
return slog.String("err", err.Error())
}