Skip to content

Commit

Permalink
bumped ClusterClient message drop log messages from DEBUG to WARNING …
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb committed Jun 14, 2018
1 parent 6f32f6a commit 8eaf9b7
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -468,17 +468,18 @@ private void Buffer(object message)
{
if (_settings.BufferSize == 0)
{
_log.Debug("Receptionist not available and buffering is disabled, dropping message [{0}]", message.GetType().Name);
_log.Warning("Receptionist not available and buffering is disabled, dropping message [{0}]", message.GetType().Name);
}
else if (_buffer.Count == _settings.BufferSize)
{
var m = _buffer.Dequeue();
_log.Debug("Receptionist not available, buffer is full, dropping first message [{0}]", m.Item1.GetType().Name);
_log.Warning("Receptionist not available, buffer is full, dropping first message [{0}]", m.Item1.GetType().Name);
_buffer.Enqueue(Tuple.Create(message, Sender));
}
else
{
_log.Debug("Receptionist not available, buffering message type [{0}]", message.GetType().Name);
if(_log.IsDebugEnabled) // don't invoke reflection call on message type if we don't have to
_log.Debug("Receptionist not available, buffering message type [{0}]", message.GetType().Name);
_buffer.Enqueue(Tuple.Create(message, Sender));
}
}
Expand Down

0 comments on commit 8eaf9b7

Please sign in to comment.