Skip to content

Commit

Permalink
Mention nf-co2footprint in warning
Browse files Browse the repository at this point in the history
  • Loading branch information
skrakau committed Jan 10, 2024
1 parent d2af297 commit 7d2a20c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class CO2FootprintFactory implements TraceObserverFactory {
// Log warnings
if( hasWarnings() ) {
def filteredWarnings = getWarnings().unique( false )
def msg = "\033[0;33mThe following warnings were generated during the execution of the workflow:\n\t- " + filteredWarnings.join('\n\t- ').trim() + "\n\033[0m"
def msg = "\033[0;33mThe nf-co2footprint plugin generated the following warnings during the execution of the workflow:\n\t- " + filteredWarnings.join('\n\t- ').trim() + "\n\033[0m"
log.warn(msg)
}
}
Expand Down Expand Up @@ -607,12 +607,12 @@ class CO2FootprintFactory implements TraceObserverFactory {
*/
@Override
void onFlowComplete() {
log.debug "Workflow completed -- rendering execution report"
log.debug "Workflow completed -- rendering CO2e footprint report"
try {
renderHtml()
}
catch (Exception e) {
log.warn "Failed to render execution report -- see the log file for details", e
log.warn "Failed to render CO2e footprint report -- see the log file for details", e
}
}

Expand Down

0 comments on commit 7d2a20c

Please sign in to comment.