forked from SW/traefik
fix: logger and context.
This commit is contained in:
committed by
Traefiker Bot
parent
b4c7b90c9e
commit
8e18d37b3d
@@ -27,7 +27,7 @@ func GenerateName(backendName string) string {
|
||||
_, err := hash.Write(data)
|
||||
if err != nil {
|
||||
// Impossible case
|
||||
log.Errorf("Fail to create cookie name: %v", err)
|
||||
log.WithoutContext().Errorf("Fail to create cookie name: %v", err)
|
||||
}
|
||||
|
||||
return fmt.Sprintf("_%x", hash.Sum(nil))[:cookieNameLength]
|
||||
|
||||
Reference in New Issue
Block a user