logger: slog improve
All checks were successful
/ autoupdate (push) Successful in 1m16s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2023-10-14 18:59:27 +03:00
parent 7b9a4924ad
commit 5c3fa31ad2
14 changed files with 154 additions and 477 deletions

View File

@@ -71,7 +71,7 @@ func New(opts ...Option) (string, error) {
func Must(opts ...Option) string {
id, err := New(opts...)
if err != nil {
logger.Fatal(context.TODO(), err)
logger.Fatal(context.TODO(), err.Error())
}
return id
}