mirror of
https://github.com/bitwarden/server.git
synced 2024-11-29 13:25:17 +01:00
Update Error Logs to Properly Log Exception (#3603)
This commit is contained in:
parent
be842c762c
commit
de30749628
@ -70,8 +70,8 @@ public class AzureQueueHostedService : IHostedService, IDisposable
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
_logger.LogError("Error processing dequeued message: " +
|
_logger.LogError(e, "Error processing dequeued message: {MessageId} x{DequeueCount}.",
|
||||||
$"{message.MessageId} x{message.DequeueCount}. {e.Message}", e);
|
message.MessageId, message.DequeueCount);
|
||||||
if (message.DequeueCount > 2)
|
if (message.DequeueCount > 2)
|
||||||
{
|
{
|
||||||
await _queueClient.DeleteMessageAsync(message.MessageId, message.PopReceipt);
|
await _queueClient.DeleteMessageAsync(message.MessageId, message.PopReceipt);
|
||||||
@ -86,7 +86,7 @@ public class AzureQueueHostedService : IHostedService, IDisposable
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
_logger.LogError("Error processing messages.", e);
|
_logger.LogError(e, "Error processing messages.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user