mirror of
https://github.com/stashapp/stash.git
synced 2025-12-06 08:26:00 +01:00
Log to stdout on exit error (#5798)
This commit is contained in:
parent
2d5160c576
commit
ffee4df8b7
1 changed files with 3 additions and 0 deletions
|
|
@ -152,6 +152,9 @@ func recoverPanic() {
|
||||||
func exitError(err error) {
|
func exitError(err error) {
|
||||||
exitCode = 1
|
exitCode = 1
|
||||||
logger.Error(err)
|
logger.Error(err)
|
||||||
|
// #5784 - log to stdout as well as the logger
|
||||||
|
// this does mean that it will log twice if the logger is set to stdout
|
||||||
|
fmt.Println(err)
|
||||||
if desktop.IsDesktop() {
|
if desktop.IsDesktop() {
|
||||||
desktop.FatalError(err)
|
desktop.FatalError(err)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue