GetMailDomain called log.Warningf which panics when the logger is not initialized (e.g. in unit tests). Add log.IsInitialized() guard. Also fix TestGetThreadID tests that hardcoded "vikunja" as the expected fallback domain - on CI the os.Hostname() fallback produces a different value. Tests now dynamically compute the expected domain. |
||
|---|---|---|
| .. | ||
| echo_logger.go | ||
| logging.go | ||
| logging_test.go | ||
| mail_logger.go | ||
| noop.go | ||
| watermill_logger.go | ||
| xorm_logger.go | ||