From 1f4a1a942ee781f15bc31591de6c060b05395968 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Mon, 6 Jul 2020 19:56:06 +0200 Subject: [PATCH] Backend: Remove debug logs from client config Signed-off-by: Michael Mayer --- internal/config/client.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/internal/config/client.go b/internal/config/client.go index 81183bd4e..c78a42620 100644 --- a/internal/config/client.go +++ b/internal/config/client.go @@ -5,7 +5,6 @@ import ( "time" "github.com/photoprism/photoprism/internal/entity" - "github.com/photoprism/photoprism/pkg/capture" "github.com/photoprism/photoprism/pkg/colors" "github.com/photoprism/photoprism/pkg/fs" "github.com/photoprism/photoprism/pkg/txt" @@ -116,8 +115,6 @@ func (c *Config) PublicConfig() ClientConfig { return c.UserConfig() } - defer log.Debug(capture.Time(time.Now(), "client config created (public)")) - settings := c.Settings() result := ClientConfig{ @@ -155,8 +152,6 @@ func (c *Config) PublicConfig() ClientConfig { // GuestConfig returns client config values for the sharing with guests. func (c *Config) GuestConfig() ClientConfig { - defer log.Debug(capture.Time(time.Now(), "client config created (guest)")) - settings := c.Settings() result := ClientConfig{ @@ -196,8 +191,6 @@ func (c *Config) GuestConfig() ClientConfig { // UserConfig returns client configuration values for registered users. func (c *Config) UserConfig() ClientConfig { - defer log.Debug(capture.Time(time.Now(), "client config created (user)")) - result := ClientConfig{ Settings: *c.Settings(), Flags: strings.Join(c.Flags(), " "),