Skip to content
Browse files

update to trace a warning when message.Size > _configuration.MaximumM…

…essageSize
  • Loading branch information...
1 parent 2f5bb91 commit de2c8bbed877c27c8127c3ddc08195ad304ddb51 @Xiaohongt Xiaohongt committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Microsoft.AspNet.SignalR.ServiceBus/ServiceBusConnectionContext.cs
View
2 src/Microsoft.AspNet.SignalR.ServiceBus/ServiceBusConnectionContext.cs
@@ -76,7 +76,7 @@ public Task Publish(int topicIndex, Stream stream)
if (message.Size > _configuration.MaximumMessageSize)
{
- _trace.TraceError("Message size {0}KB exceeds the maximum size limit of {1}KB : {2}", message.Size / 1024, _configuration.MaximumMessageSize / 1024, message);
+ _trace.TraceWarning("Message size {0}KB exceeds the maximum size limit of {1}KB : {2}", message.Size / 1024, _configuration.MaximumMessageSize / 1024, message);
}
return _topicClients[topicIndex].SendAsync(message);

0 comments on commit de2c8bb

Please sign in to comment.
Something went wrong with that request. Please try again.