Skip to content

Commit

Permalink
watch: do not log group by default, it is not interesting enough
Browse files Browse the repository at this point in the history
  • Loading branch information
Kamilcuk committed Jul 28, 2024
1 parent 16a5033 commit 5d2e21a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/nomad_tools/entry_watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d2e21a

Please sign in to comment.