Elevate application starup errors to be logged as critical #612
This commit is contained in:
parent
a04dae1b14
commit
c6f6066b03
|
|
@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Hosting.Internal
|
|||
|
||||
public static void ApplicationError(this ILogger logger, Exception exception)
|
||||
{
|
||||
logger.LogError(
|
||||
logger.LogCritical(
|
||||
eventId: LoggerEventIds.ApplicationStartupException,
|
||||
message: "Application startup exception",
|
||||
exception: exception);
|
||||
|
|
|
|||
Loading…
Reference in New Issue