Skip to content

Commit 0cf4147

Browse files
committed
Merge pull request #2 from etiennecollin/fix/backend-log-env-var-naming
Release 1.0.2
2 parents ac27886 + 7cbd02b commit 0cf4147

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,8 @@ Perfect for businesses, cafes, hotels, and home networks that need to provide gu
120120
| `FRONTEND_TO_BACKEND_URL` | Optional | URL where the frontend will make its API requests to the backend. | `http://127.0.0.1` (default) |
121121
| `BACKEND_BIND_HOST` | Optional | Address on which the server binds. | `127.0.0.1` (default) |
122122
| `BACKEND_BIND_PORT` | Optional | Port on which the backend server binds. | `8080` (default) |
123+
| `BACKEND_LOG_LEVEL` | Optional | Log level of the Rust backend. | `info`(default) |
123124
| `TIMEZONE` | Optional | Server [timezone](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). | `UTC` (default) |
124-
| `RUST_LOG` | Optional | Log level of the Rust backend. | `info`(default) |
125125

126126
### Getting UniFi API Credentials
127127

backend/src/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ async fn main() {
1818
tracing_subscriber::fmt()
1919
.with_env_filter(
2020
EnvFilter::builder()
21+
.with_env_var("BACKEND_LOG_LEVEL")
2122
.with_default_directive(LevelFilter::INFO.into())
22-
.from_env_lossy(), // use RUST_LOG env variable when running
23+
.from_env_lossy(),
2324
)
2425
.init();
2526

0 commit comments

Comments
 (0)