fix: refine logging
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"me-fit/log"
|
||||
"me-fit/types"
|
||||
|
||||
"crypto/rand"
|
||||
"encoding/base64"
|
||||
"log/slog"
|
||||
|
||||
"github.com/google/uuid"
|
||||
)
|
||||
@@ -27,7 +27,7 @@ func (r *RandomServiceImpl) Bytes(size int) ([]byte, error) {
|
||||
b := make([]byte, 32)
|
||||
_, err := rand.Read(b)
|
||||
if err != nil {
|
||||
slog.Error("Error generating random bytes: " + err.Error())
|
||||
log.Error("Error generating random bytes: %v", err)
|
||||
return []byte{}, types.ErrInternal
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user