File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
src/coverlet.msbuild.tasks Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ public override bool Execute()
8080 catch ( Exception ex )
8181 {
8282 // We don't want to block coverage for I/O errors
83- Log . LogWarning ( $ "Exception during instrument state deletion, file name '{ InstrumenterState . ItemSpec } '") ;
84- Log . LogWarningFromException ( ex , true ) ;
83+ _logger . LogInformation ( $ "Exception during instrument state deletion, file name '{ InstrumenterState . ItemSpec } '") ;
84+ _logger . LogWarning ( ex ) ;
8585 }
8686
8787 CoverageResult result = coverage . GetCoverageResult ( ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class MSBuildLogger : Coverlet.Core.Abstractions.ILogger
2222
2323 public void LogWarning ( string message ) => _log . LogWarning ( $ "{ LogPrefix } { message } ") ;
2424
25+ public void LogWarning ( Exception exception ) => _log . LogWarningFromException ( exception , true ) ;
26+
2527 public void LogError ( string message ) => _log . LogError ( $ "{ LogPrefix } { message } ") ;
2628
2729 public void LogError ( Exception exception ) => _log . LogErrorFromException ( exception , true ) ;
You can’t perform that action at this time.
0 commit comments