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: Add ability to configure nox log level #60

Merged
merged 2 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions roles/nox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ Should be put to `files/` directory where you run this role.
- version of nox
- type: string

#### `nox_log_level`

- log level passed to `RUST_LOG` variable. Individual components log level can
me set like this `nox_log_level: "info,chain-listener=debug"`
- type: string
- default:
```yml
nox_log_level: "info"
```

#### `nox_dir`

- root nox directory
Expand Down
3 changes: 2 additions & 1 deletion roles/nox/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ nox_dir: "/opt/fluence/nox"
nox_project_dir: ""
nox_group: "nox"
nox_user: "nox"
nox_log_level: "info"
nox_branch: ""
nox_cleanup_state: false
nox_local_backup_dir: "files/{{ fluence_project_dir }}/backups"
Expand All @@ -16,7 +17,7 @@ nox_unit_file: |
Environment="FLUENCE_CONFIG={{ nox_dir }}/Config.toml"
Environment="FLUENCE_BASE_DIR={{ nox_dir }}/state"
Environment="FLUENCE_ROOT_KEY_PAIR__PATH={{ nox_dir }}/state/root_secret_key.ed25519"
Environment="RUST_LOG=info,chain-listener=debug,chain-connector=debug"
Environment="RUST_LOG={{ nox_log_level }}"
ExecStart={{ nox_dir }}/nox
Restart=on-failure
User=root
Expand Down