]> source.dussan.org Git - gitea.git/commit
Use stderr as fallback if the log file can't be opened (#26074)
authorwxiaoguang <wxiaoguang@gmail.com>
Mon, 24 Jul 2023 04:57:21 +0000 (12:57 +0800)
committerGitHub <noreply@github.com>
Mon, 24 Jul 2023 04:57:21 +0000 (04:57 +0000)
commit674df05b16f396bf6f2a952923b9c2dfe371415b
tree7fb44c247dec418341c86709042df65b5edce1f1
parent4b6764bbb36f616035477480fc14959687d9d65b
Use stderr as fallback if the log file can't be opened (#26074)

If the log file can't be opened, what should it do? panic/exit? ignore
logs? fallback to stderr?

It seems that "fallback to stderr" is slightly better than others ....
modules/log/event_writer_file.go