From 9f29992d03d6bb941a8bfc16a29c4a72a72fc34a Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 17 Jun 2018 22:36:01 +0200 Subject: refactor(main): Split LOG_NAME & LOG_STREAM variables Splitting these in two lets users better configure how the logs show up in Stackdriver Logging. --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 9db3c94ecf..33ca57dddb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -153,7 +153,7 @@ fn get_project_id() -> String { /// On non-GCP machines the value is determined by using the /// `GOOGLE_CLOUD_PROJECT` and `LOG_NAME` environment variables. fn determine_monitored_resource() -> Value { - if let Ok(log) = env::var("LOG_NAME") { + if let Ok(log) = env::var("LOG_STREAM") { json!({ "type": "logging_log", "labels": { -- cgit 1.4.1