diff --git a/roles/nox/README.md b/roles/nox/README.md index 4573d44..73aa520 100644 --- a/roles/nox/README.md +++ b/roles/nox/README.md @@ -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 diff --git a/roles/nox/defaults/main.yml b/roles/nox/defaults/main.yml index daef816..809bc02 100644 --- a/roles/nox/defaults/main.yml +++ b/roles/nox/defaults/main.yml @@ -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" @@ -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