File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Nuke.GlobalTool/templates Expand file tree Collapse file tree 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)
180180
181181 public void Emit ( LogEvent logEvent )
182182 {
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 ( ) ) ;
187187 }
188188 }
189189}
Original file line number Diff line number Diff line change 1414using Nuke . Common . Utilities . Collections ;
1515using static Nuke . Common . ChangeLog . ChangelogTasks ; // CHANGELOG
1616using static Nuke . Common . EnvironmentInfo ;
17- using static Nuke . Common . IO . FileSystemTasks ;
1817using static Nuke . Common . IO . PathConstruction ;
1918using static Nuke . Common . Tools . DotNet . DotNetTasks ; // DOTNET
2019using static Nuke . Common . Tools . MSBuild . MSBuildTasks ; // MSBUILD
You can’t perform that action at this time.
0 commit comments