Skip to content

Commit 75b622a

Browse files
Update Agent.cs: explainer of logging
1 parent af456af commit 75b622a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Aikido.Zen.Core/Agent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ private async Task<int> ProcessSingleEvent(QueuedItem queuedItem, int requestsTh
502502
// Requeue on error and delay
503503
_eventQueue.Enqueue(queuedItem);
504504
LogHelper.DebugLog(Logger, $"AIKIDO: Error processing event: {queuedItem.Event.Type}, Error: {ex.Message}");
505+
// we always want to log errors here, since the agent will continue running, but stats and events won't be sent to the server, the user should always be able to find this in logs / traces / debug out.
505506
Trace.WriteLine($"AIKIDO: Error processing event: {queuedItem.Event.Type}, Error: {ex.Message}");
506507
Console.WriteLine($"AIKIDO: Error processing event: {queuedItem.Event.Type}, Error: {ex.Message}");
507508
await Task.Delay(RetryDelayMs, _cancellationSource.Token);

0 commit comments

Comments
 (0)