From 320e139e709eac639eee90d8869146ab9f6bd05e Mon Sep 17 00:00:00 2001 From: Anders Rillbert Date: Sun, 28 Mar 2021 14:52:25 +0200 Subject: [PATCH] improve logging when friendly_name is lacking --- lib/sproc/reporting.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sproc/reporting.rb b/lib/sproc/reporting.rb index d7c32be..480eca2 100644 --- a/lib/sproc/reporting.rb +++ b/lib/sproc/reporting.rb @@ -67,7 +67,7 @@ def report_completed(process) friendly_name = if @log_friendly_name_map&.key?(process) "#{@log_friendly_name_map[process]}" else - 'Process' + process.task_info[:cmd_str][0,10] + "..." end started_ok = true case process.execution_state