matrix-org/sliding-sync

Misleading log configuration

Closed this issue · 1 comments

I can see two switches for configure logging:

SYNCV3_DEBUG and SYNCV3_LOG_LEVEL.

SYNCV3_DEBUG is trace level:

if args[EnvDebug] == "1" {
zerolog.SetGlobalLevel(zerolog.TraceLevel)

Is SYNCV3_DEBUG the old an "deprecated" one?

It was introduced in:

SYNCV3_DEBUG should only be used by developers. Setting it turns on trace logging but it also makes failed assertions panic, so you'll see more crashes if you enable it.