File tree 2 files changed +4
-2
lines changed
src/coverlet.msbuild.tasks
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()
80
80
catch ( Exception ex )
81
81
{
82
82
// 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 ) ;
85
85
}
86
86
87
87
CoverageResult result = coverage . GetCoverageResult ( ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,8 @@ class MSBuildLogger : Coverlet.Core.Abstractions.ILogger
22
22
23
23
public void LogWarning ( string message ) => _log . LogWarning ( $ "{ LogPrefix } { message } ") ;
24
24
25
+ public void LogWarning ( Exception exception ) => _log . LogWarningFromException ( exception , true ) ;
26
+
25
27
public void LogError ( string message ) => _log . LogError ( $ "{ LogPrefix } { message } ") ;
26
28
27
29
public void LogError ( Exception exception ) => _log . LogErrorFromException ( exception , true ) ;
You can’t perform that action at this time.
0 commit comments