Wrap log in enabled check
This commit is contained in:
parent
b2037efa08
commit
71e2f45450
|
|
@ -102,8 +102,11 @@ namespace Microsoft.AspNetCore.SignalR.Internal
|
||||||
|
|
||||||
public static void SendingResult(ILogger logger, string invocationId, ObjectMethodExecutor objectMethodExecutor)
|
public static void SendingResult(ILogger logger, string invocationId, ObjectMethodExecutor objectMethodExecutor)
|
||||||
{
|
{
|
||||||
var resultType = objectMethodExecutor.AsyncResultType == null ? objectMethodExecutor.MethodReturnType : objectMethodExecutor.AsyncResultType;
|
if (logger.IsEnabled(LogLevel.Trace))
|
||||||
_sendingResult(logger, invocationId, resultType.FullName, null);
|
{
|
||||||
|
var resultType = objectMethodExecutor.AsyncResultType == null ? objectMethodExecutor.MethodReturnType : objectMethodExecutor.AsyncResultType;
|
||||||
|
_sendingResult(logger, invocationId, resultType.FullName, null);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void FailedInvokingHubMethod(ILogger logger, string hubMethod, Exception exception)
|
public static void FailedInvokingHubMethod(ILogger logger, string hubMethod, Exception exception)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue