Use logException consistently and use logDiagnostic

Many places around were re-inventing logException with varying level of success.
In addition, the full error is now printed as a diagnostic instead of debug.
This is more in line with the description of `LogLevel.diagnostic`
("Extended user information (e.g. for more detailed error information)"),
as opposed to the one of `LogLevel.debug_`
("Developer information useful for algorithm debugging").
This commit is contained in:
Geod24 2020-07-24 15:51:40 +09:00 committed by Mathias LANG
parent f3accb40d5
commit bd8c2c6e90
6 changed files with 14 additions and 24 deletions

View file

@ -112,8 +112,7 @@ int main()
runTask({
try runTest();
catch (Throwable th) {
logError("Test failed: %s", th.msg);
logDiagnostic("Full error: %s", th);
th.logException("Test failed");
ret = 1;
} finally exitEventLoop(true);
});