mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-08 14:43:09 -06:00
Revert the logging bit, as that messes with unit tests in CI
This commit is contained in:
parent
d1fe6c41b5
commit
b13ca0c0e4
|
|
@ -50,6 +50,15 @@ func main() {
|
||||||
cfg.Global.DatabaseOptions.ConnectionString = config.DataSource(*dbURI)
|
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 {
|
if *defaultsForCI {
|
||||||
cfg.AppServiceAPI.DisableTLSValidation = true
|
cfg.AppServiceAPI.DisableTLSValidation = true
|
||||||
cfg.ClientAPI.RateLimiting.Enabled = false
|
cfg.ClientAPI.RateLimiting.Enabled = false
|
||||||
|
|
|
||||||
|
|
@ -304,18 +304,6 @@ type DefaultOpts struct {
|
||||||
func (c *Dendrite) Defaults(opts DefaultOpts) {
|
func (c *Dendrite) Defaults(opts DefaultOpts) {
|
||||||
c.Version = Version
|
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.Global.Defaults(opts)
|
||||||
c.ClientAPI.Defaults(opts)
|
c.ClientAPI.Defaults(opts)
|
||||||
c.FederationAPI.Defaults(opts)
|
c.FederationAPI.Defaults(opts)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue