refactor(main): Split LOG_NAME & LOG_STREAM variables
Splitting these in two lets users better configure how the logs show up in Stackdriver Logging.
This commit is contained in:
parent
208b5dec2c
commit
9f29992d03
2 changed files with 5 additions and 3 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue