remove last souris log

This commit is contained in:
Jon Lundy
2020-11-23 14:21:58 -07:00
parent e350de5811
commit c23e596c0c
4 changed files with 12 additions and 168 deletions

View File

@@ -8,7 +8,7 @@ import (
"strings"
"github.com/lucasb-eyer/go-colorful"
"sour.is/x/toolbox/log"
"github.com/rs/zerolog/log"
)
type StyleKey string
@@ -26,11 +26,13 @@ type Style struct {
}
func (s *identity) getStyle(ctx context.Context, email string) (*Style, error) {
log := log.Ctx(ctx)
avatarHost, styleHost, err := styleSRV(ctx, email)
if err != nil {
return nil, err
}
log.Infos("getStyle", "avatar", avatarHost, "style", styleHost)
log.Info().Str("avatar", avatarHost).Str("style", styleHost).Msg("getStyle")
hash := md5.New()
email = strings.TrimSpace(strings.ToLower(email))