From 5d2e21a7483c5441dc59f9ad74753bba7f95533d Mon Sep 17 00:00:00 2001 From: Kamil Cukrowski Date: Sun, 28 Jul 2024 22:57:09 +0200 Subject: [PATCH] watch: do not log group by default, it is not interesting enough --- src/nomad_tools/entry_watch.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/nomad_tools/entry_watch.py b/src/nomad_tools/entry_watch.py index 291ce20..daa7250 100755 --- a/src/nomad_tools/entry_watch.py +++ b/src/nomad_tools/entry_watch.py @@ -275,14 +275,13 @@ class LogFormatter: + mark + "{{log.id[:args.log_id_len]}}>" + "v{{log.jobversion}}>" - + "{{log.group + '>' if log.group}}" + task + " " + post ) """ Default log format. The log is templated with f-string using eval() below. - O>45fbbd>v0>group1>task1> hello world + O>45fbbd>v0>task1> hello world """ ONE = pre + mark + task + " " + post @@ -1943,7 +1942,7 @@ class Args(LogOptions, NotifyOptions): watching. This program is intended to help debugging issues with running jobs in Nomad and for synchronizing with execution of batch jobs in Nomad. -Logs are printed in the format: 'mark>id>vversion>group>task> message'. +Logs are printed in the format: 'mark>id>vversion>task> message'. The mark in the log lines is equal to: 'deploy' for messages printed as a result of deployment, 'eval' for messages printed from evaluations, 'A' from allocation, 'E' for stderr logs of a task and 'O' from stdout