Skip to content

Commit 7bdd9e4

Browse files
authored
Improve error logging for contact file checks (#6156)
1 parent 2732f53 commit 7bdd9e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cylc/flow/workflow_files.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,8 @@ def _is_process_running(
424424
out, err = proc.communicate(timeout=10, input=metric)
425425
except TimeoutExpired:
426426
raise CylcError(
427-
f'Cannot determine whether workflow is running on {host}.'
427+
f'Attempt to determine whether workflow is running on {host}'
428+
' timed out after 10 seconds.'
428429
)
429430

430431
if proc.returncode == 2:
@@ -435,7 +436,7 @@ def _is_process_running(
435436
error = False
436437
if proc.returncode:
437438
# the psutil call failed in some other way e.g. network issues
438-
LOG.debug(
439+
LOG.warning(
439440
f'$ {cli_format(cmd)} # returned {proc.returncode}\n{err}'
440441
)
441442
error = True

0 commit comments

Comments
 (0)