Skip to content

Commit

Permalink
feat: Add ability to configure nox log level (#60)
Browse files Browse the repository at this point in the history
Add ability to configure nox log level
  • Loading branch information
nahsi authored Oct 2, 2024
1 parent ebb574f commit a8df7ec
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
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

0 comments on commit a8df7ec

Please sign in to comment.