Skip to content

Commit

Permalink
feature(log_collector): add scripts debug logs
Browse files Browse the repository at this point in the history
We have added setup scripts debug log on
scylladb/scylladb@883b97d,
which is generated at /var/tmp/scylla/{scriptname}-{pid}-debug.log.
The file contains more detail of traceback with current value of variables,
it helps to fix bugs which hard to reproduce.
  • Loading branch information
syuu1228 authored and fruch committed Sep 14, 2023
1 parent 1eb2769 commit e5f2055
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdcm/logcollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,7 +817,9 @@ class ScyllaLogCollector(LogCollector):
CommandLog(name='cassandra-rackdc.properties',
command=f'cat {SCYLLA_PROPERTIES_PATH}'),
CommandLog(name='scylla-manager-agent.yaml',
command=f'cat {SCYLLA_MANAGER_AGENT_YAML_PATH}')
command=f'cat {SCYLLA_MANAGER_AGENT_YAML_PATH}'),
CommandLog(name='setup_scripts_errors.log',
command='for i in /var/tmp/scylla/*.log;do echo [$i]; cat $i;done')
]
cluster_log_type = "db-cluster"
cluster_dir_prefix = "db-cluster"
Expand Down

0 comments on commit e5f2055

Please sign in to comment.