@google-cloud/logging
Advanced tools
Comparing version 9.5.6 to 9.5.7
@@ -188,12 +188,6 @@ "use strict"; | ||
return getCloudFunctionDescriptor().catch(() => getGlobalDescriptor()); | ||
case google_auth_library_1.GCPEnv.CLOUD_RUN: | ||
return getCloudRunDescriptor().catch(() => getGlobalDescriptor()); | ||
case google_auth_library_1.GCPEnv.COMPUTE_ENGINE: | ||
// Note: GCPEnv.COMPUTE_ENGINE returns `true` for Google Cloud Run | ||
if (process.env.K_CONFIGURATION) { | ||
return getCloudRunDescriptor().catch(() => getGlobalDescriptor()); | ||
} | ||
else { | ||
// Test for compute engine should be done after all the rest - | ||
// everything runs on top of compute engine. | ||
return getGCEDescriptor().catch(() => getGlobalDescriptor()); | ||
} | ||
return getGCEDescriptor().catch(() => getGlobalDescriptor()); | ||
default: | ||
@@ -230,9 +224,7 @@ return getGlobalDescriptor(); | ||
}; | ||
case google_auth_library_1.GCPEnv.CLOUD_RUN: | ||
return { | ||
service: process.env.K_SERVICE, | ||
}; | ||
case google_auth_library_1.GCPEnv.COMPUTE_ENGINE: | ||
// Google Cloud Run | ||
if (process.env.K_CONFIGURATION) { | ||
return { | ||
service: process.env.K_SERVICE, | ||
}; | ||
} | ||
return null; | ||
@@ -239,0 +231,0 @@ default: |
@@ -7,2 +7,9 @@ # Changelog | ||
### [9.5.7](https://www.github.com/googleapis/nodejs-logging/compare/v9.5.6...v9.5.7) (2021-09-02) | ||
### Bug Fixes | ||
* Fix detecting Cloud Run logic ([#1145](https://www.github.com/googleapis/nodejs-logging/issues/1145)) ([99c276c](https://www.github.com/googleapis/nodejs-logging/commit/99c276cf0c394200836f3289ff21a4880523a7b5)), closes [#1127](https://www.github.com/googleapis/nodejs-logging/issues/1127) | ||
### [9.5.6](https://www.github.com/googleapis/nodejs-logging/compare/v9.5.5...v9.5.6) (2021-09-01) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/logging", | ||
"version": "9.5.6", | ||
"version": "9.5.7", | ||
"description": "Stackdriver Logging Client Library for Node.js", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23
3594890
60431