fix: Makes logging more consistent (#1246)
This commit is contained in:
parent
8e0d01d4be
commit
d8cfb6b935
15 changed files with 90 additions and 69 deletions
|
|
@ -46,11 +46,16 @@ internal static class TileMatrixLoader
|
|||
|
||||
if (exception == null)
|
||||
{
|
||||
logger.Information("Maps loaded ({Duration:F2} seconds)", stopwatch.Elapsed.TotalSeconds);
|
||||
logger.Information("Loading maps {Status} ({Duration:F2} seconds)", "done", stopwatch.Elapsed.TotalSeconds);
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.Error(exception, "Loading maps failed ({Duration:F2} seconds)", stopwatch.Elapsed.TotalSeconds);
|
||||
logger.Error(
|
||||
exception,
|
||||
"Loading maps {Status} ({Duration:F2} seconds)",
|
||||
"failed",
|
||||
stopwatch.Elapsed.TotalSeconds
|
||||
);
|
||||
throw exception;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue