Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Change in Tenderdash Role to investigate the chain halt issue. #641

Closed
wants to merge 16 commits into from
2 changes: 1 addition & 1 deletion ansible/group_vars/all
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ tendermint_rpc_port: 36657
tenderdash_uid: "100"
tenderdash_gid: "1000"

tenderdash_log_level: debug
tenderdash_log_level: trace

tenderdash_compose_project_name: tenderdash
tenderdash_compose_path: '{{ dashd_home }}/{{ tenderdash_compose_project_name }}'
Expand Down
27 changes: 27 additions & 0 deletions ansible/roles/tenderdash/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,30 @@
state: present
pull: always
recreate: always

- name: Configure logrotate for Tenderdash logs
ansible.builtin.copy:
dest: /etc/logrotate.d/tenderdash
content: |
{{ tenderdash_compose_path }}/tenderdash/logs/*.log {
daily
rotate 1
compress
delaycompress
missingok
notifempty
create 0640 {{ tenderdash_uid }} {{ tenderdash_gid }}
}
owner: '{{ tenderdash_uid }}'
group: '{{ tenderdash_gid }}'
mode: '0640'

- name: Add Logstash filter for Tenderdash TRACE logs
ansible.builtin.lineinfile:
path: /etc/logstash/conf.d/tenderdash.conf
line: |
filter {
if [log_level] == "trace" {
drop { }
}
}
Loading