only set logfile dir if media is file (#615)

This commit is contained in:
Thibault "bui" Koechlin 2021-02-11 18:28:01 +01:00 committed by GitHub
parent 2888bda959
commit 7f40160f6e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View file

@ -32,6 +32,7 @@ type LocalApiServerCfg struct {
TLS *TLSCfg `yaml:"tls"`
DbConfig *DatabaseCfg `yaml:"-"`
LogDir string `yaml:"-"`
LogMedia string `yaml:"-"`
OnlineClient *OnlineApiClientCfg `yaml:"online_client"`
ProfilesPath string `yaml:"profiles_path,omitempty"`
Profiles []*ProfileCfg `yaml:"-"`