Remove all fmr.Println and add zerolog logging
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m52s
Some checks failed
Build and Push Docker Image / build_and_push (push) Failing after 1m52s
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
package profilepictures
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"image"
|
||||
"image/color"
|
||||
"image/draw"
|
||||
|
||||
"github.com/fogleman/gg"
|
||||
"github.com/rs/zerolog/log"
|
||||
"golang.org/x/image/font"
|
||||
"golang.org/x/image/math/fixed"
|
||||
)
|
||||
@@ -21,7 +21,7 @@ func DefaultProfilePicture(initials string) *image.RGBA {
|
||||
|
||||
ff, err := gg.LoadFontFace("themes/default/web/fonts/bitter.ttf", 150.0)
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
log.Error().Err(err).Msg("")
|
||||
return img
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user