Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ internal override async ValueTask HandleRequestResultAsync(HttpResponseMessage r
var stream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false);
var error = await JsonSerializer.DeserializeAsync<string>(stream, cancellationToken: token).ConfigureAwait(false);

_logger.Error($"Command request for {value.Path} has been faulted. {error}.");
_logger.Error($"Command request for {value.Path} has been faulted. Status Code: {response.StatusCode}, Status Text: {error}.");
}
else
{
Expand Down
4 changes: 3 additions & 1 deletion src/collector/HSMDataCollector/Core/DataProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,10 @@ private void EmitOverflowDrops(string queueName, int droppedCount)

private void LogDiscardedItems(int count, string queueName)
{
// Info, not Error: discarding still-buffered values on a graceful shutdown is expected and
// contracted (a stop must not block on a dead/slow transport) — it is not a fault.
if (count > 0)
_logger.Error($"{queueName} queue discarded {count} item(s) during collector shutdown.");
_logger.Info($"{queueName} queue discarded {count} item(s) during collector shutdown.");
}

private void RollbackStartedQueues(bool dataStarted, bool priorityStarted, bool fileStarted, bool commandStarted)
Expand Down
Loading