File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -574,7 +574,8 @@ protected virtual IPooledSocketResult ExecuteOperation(IOperation op)
574
574
}
575
575
else
576
576
{
577
- result . Fail ( "Failed to obtain socket from pool" ) ;
577
+ var errorMsg = string . IsNullOrEmpty ( result . Message ) ? "Failed to acquire a socket from pool" : result . Message ;
578
+ _logger . LogError ( errorMsg ) ;
578
579
return result ;
579
580
}
580
581
@@ -622,7 +623,8 @@ protected async virtual Task<IPooledSocketResult> ExecuteOperationAsync(IOperati
622
623
}
623
624
else
624
625
{
625
- result . Fail ( "Failed to obtain socket from pool" ) ;
626
+ var errorMsg = string . IsNullOrEmpty ( result . Message ) ? "Failed to acquire a socket from pool" : result . Message ;
627
+ _logger . LogError ( errorMsg ) ;
626
628
return result ;
627
629
}
628
630
You can’t perform that action at this time.
0 commit comments