Backend: Remove debug logs from client config

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-07-06 19:56:06 +02:00
parent 379c46df64
commit 1f4a1a942e

View file

@ -5,7 +5,6 @@ import (
"time" "time"
"github.com/photoprism/photoprism/internal/entity" "github.com/photoprism/photoprism/internal/entity"
"github.com/photoprism/photoprism/pkg/capture"
"github.com/photoprism/photoprism/pkg/colors" "github.com/photoprism/photoprism/pkg/colors"
"github.com/photoprism/photoprism/pkg/fs" "github.com/photoprism/photoprism/pkg/fs"
"github.com/photoprism/photoprism/pkg/txt" "github.com/photoprism/photoprism/pkg/txt"
@ -116,8 +115,6 @@ func (c *Config) PublicConfig() ClientConfig {
return c.UserConfig() return c.UserConfig()
} }
defer log.Debug(capture.Time(time.Now(), "client config created (public)"))
settings := c.Settings() settings := c.Settings()
result := ClientConfig{ result := ClientConfig{
@ -155,8 +152,6 @@ func (c *Config) PublicConfig() ClientConfig {
// GuestConfig returns client config values for the sharing with guests. // GuestConfig returns client config values for the sharing with guests.
func (c *Config) GuestConfig() ClientConfig { func (c *Config) GuestConfig() ClientConfig {
defer log.Debug(capture.Time(time.Now(), "client config created (guest)"))
settings := c.Settings() settings := c.Settings()
result := ClientConfig{ result := ClientConfig{
@ -196,8 +191,6 @@ func (c *Config) GuestConfig() ClientConfig {
// UserConfig returns client configuration values for registered users. // UserConfig returns client configuration values for registered users.
func (c *Config) UserConfig() ClientConfig { func (c *Config) UserConfig() ClientConfig {
defer log.Debug(capture.Time(time.Now(), "client config created (user)"))
result := ClientConfig{ result := ClientConfig{
Settings: *c.Settings(), Settings: *c.Settings(),
Flags: strings.Join(c.Flags(), " "), Flags: strings.Join(c.Flags(), " "),