File tree 2 files changed +4
-5
lines changed
Nuke.GlobalTool/templates
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -180,10 +180,10 @@ public LogEventSink(Host host)
180
180
181
181
public void Emit ( LogEvent logEvent )
182
182
{
183
- if ( logEvent . Level == LogEventLevel . Warning )
184
- _host . ReportWarning ( logEvent . RenderMessage ( ) ) ;
185
- else if ( logEvent . Level == LogEventLevel . Error )
186
- _host . ReportError ( logEvent . RenderMessage ( ) ) ;
183
+ if ( logEvent . Level is LogEventLevel . Warning )
184
+ _host . ReportWarning ( logEvent . RenderMessage ( ) , logEvent . Exception ? . ToString ( ) ) ;
185
+ else if ( logEvent . Level is LogEventLevel . Error or LogEventLevel . Fatal )
186
+ _host . ReportError ( logEvent . RenderMessage ( ) , logEvent . Exception ? . ToString ( ) ) ;
187
187
}
188
188
}
189
189
}
Original file line number Diff line number Diff line change 14
14
using Nuke . Common . Utilities . Collections ;
15
15
using static Nuke . Common . ChangeLog . ChangelogTasks ; // CHANGELOG
16
16
using static Nuke . Common . EnvironmentInfo ;
17
- using static Nuke . Common . IO . FileSystemTasks ;
18
17
using static Nuke . Common . IO . PathConstruction ;
19
18
using static Nuke . Common . Tools . DotNet . DotNetTasks ; // DOTNET
20
19
using static Nuke . Common . Tools . MSBuild . MSBuildTasks ; // MSBUILD
You can’t perform that action at this time.
0 commit comments