mirror of
https://github.com/ACINQ/eclair.git
synced 2025-01-19 05:33:59 +01:00
Do not print the stacktrace on stderr when there is an error at boot (#966)
* Do not print the stacktrace on stdout when there is an error at boot
This commit is contained in:
parent
650c5049d5
commit
1d486f4584
@ -40,8 +40,9 @@ object JavafxBoot extends App with Logging {
|
||||
}
|
||||
} catch {
|
||||
case t: Throwable =>
|
||||
System.err.println(s"fatal error: ${t.getMessage}")
|
||||
logger.error(s"fatal error: ${t.getMessage}")
|
||||
val errorMsg = if (t.getMessage != null) t.getMessage else t.getClass.getSimpleName
|
||||
System.err.println(s"fatal error: $errorMsg")
|
||||
logger.error(s"fatal error: $errorMsg", t)
|
||||
System.exit(1)
|
||||
}
|
||||
}
|
||||
|
@ -47,8 +47,9 @@ object Boot extends App with Logging {
|
||||
}
|
||||
|
||||
def onError(t: Throwable): Unit = {
|
||||
logger.error(s"fatal error:", t)
|
||||
t.printStackTrace()
|
||||
val errorMsg = if (t.getMessage != null) t.getMessage else t.getClass.getSimpleName
|
||||
System.err.println(s"fatal error: $errorMsg")
|
||||
logger.error(s"fatal error: $errorMsg", t)
|
||||
System.exit(1)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user