gitea/modules/log
zeripath 3aa5749d53
Disable doctor logging on panic ()
* Disable doctor logging on panic

If permissions are incorrect for writing to the doctor log simply disable the log file
instead of panicing.

Related 

Signed-off-by: Andrew Thornton <art27@cantab.net>

* Update cmd/doctor.go

* Update cmd/doctor.go

Co-authored-by: delvh <dev.lh@web.de>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
..
buffer.go migrations: add test for importing pull requests in gitea uploader ()
buffer_test.go migrations: add test for importing pull requests in gitea uploader ()
colors.go format with gofumpt ()
colors_router.go Refactor Router Logger ()
conn.go migrations: add test for importing pull requests in gitea uploader ()
conn_test.go format with gofumpt ()
console.go migrations: add test for importing pull requests in gitea uploader ()
console_other.go Only set CanColorStdout / CanColorStderr to true if the stdout/stderr is a terminal ()
console_test.go Fixed assert statements. ()
console_windows.go Fix windows build error ()
errors.go Better logging () ()
event.go Empty log queue on flush and close ()
file.go migrations: add test for importing pull requests in gitea uploader ()
file_test.go format with gofumpt ()
flags.go Log: Ensure FLAGS=none is -1 ()
groutinelabel.go Add auto logging of goroutine pid label ()
groutinelabel_test.go Add auto logging of goroutine pid label ()
level.go Add an abstract json layout to make it's easier to change json library ()
level_test.go Add an abstract json layout to make it's easier to change json library ()
log.go Refactor Router Logger ()
log_test.go format with gofumpt ()
logger.go format with gofumpt ()
multichannel.go Disable doctor logging on panic ()
provider.go migrations: add test for importing pull requests in gitea uploader ()
smtp.go migrations: add test for importing pull requests in gitea uploader ()
smtp_test.go Fixed assert statements. ()
stack.go format with gofumpt ()
writer.go format with gofumpt ()
writer_test.go Fixed assert statements. ()