Revert the logging bit, as that messes with unit tests in CI

This commit is contained in:
Neil Alexander 2022-07-12 12:56:16 +01:00
parent d1fe6c41b5
commit b13ca0c0e4
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944
2 changed files with 9 additions and 12 deletions

View file

@ -50,6 +50,15 @@ func main() {
cfg.Global.DatabaseOptions.ConnectionString = config.DataSource(*dbURI)
}
}
cfg.Logging = []config.LogrusHook{
{
Type: "file",
Level: "info",
Params: map[string]interface{}{
"path": "/var/log/dendrite",
},
},
}
if *defaultsForCI {
cfg.AppServiceAPI.DisableTLSValidation = true
cfg.ClientAPI.RateLimiting.Enabled = false

View file

@ -304,18 +304,6 @@ type DefaultOpts struct {
func (c *Dendrite) Defaults(opts DefaultOpts) {
c.Version = Version
if opts.Generate {
c.Logging = []LogrusHook{
{
Type: "file",
Level: "info",
Params: map[string]interface{}{
"path": "/var/log",
},
},
}
}
c.Global.Defaults(opts)
c.ClientAPI.Defaults(opts)
c.FederationAPI.Defaults(opts)