Skip to content

Commit 4773282

Browse files
committed
add an extra check
1 parent 4372fab commit 4773282

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cmd/serv.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ func setup(ctx context.Context, debug bool) {
5858
setupConsoleLogger(log.TRACE, false, os.Stderr)
5959
} else {
6060
setupConsoleLogger(log.FATAL, false, os.Stderr)
61+
// This log is used as a check to make sure there won't be any real log output in production to help to catch regressions early
62+
// Because any log output will break the git protocol
63+
log.Warn("Starting Gitea Serv .... (it should not be seen in production)")
6164
}
6265
setting.MustInstalled()
6366
if _, err := os.Stat(setting.RepoRootPath); err != nil {

0 commit comments

Comments
 (0)