@google-cloud/logging-bunyan
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -123,2 +123,3 @@ /*! | ||
private serviceContext?; | ||
private defaultCallback?; | ||
stackdriverLog: types.StackdriverLog; | ||
@@ -125,0 +126,0 @@ constructor(options?: types.Options); |
@@ -152,2 +152,3 @@ "use strict"; | ||
this.serviceContext = options.serviceContext; | ||
this.defaultCallback = options.defaultCallback; | ||
// eslint-disable-next-line @typescript-eslint/no-explicit-any | ||
@@ -160,3 +161,2 @@ this.stackdriverLog = new logging_1.Logging(options).log(this.logName, { | ||
maxEntrySize: options.maxEntrySize || 250000, | ||
defaultWriteDeleteCallback: options.defaultCallback, | ||
}); | ||
@@ -297,4 +297,5 @@ // serviceContext.service is required by the Error Reporting | ||
_write(record, encoding, callback) { | ||
var _a; | ||
const entry = this.formatEntry_(record); | ||
this.stackdriverLog.write(entry, callback); | ||
this.stackdriverLog.write(entry, (_a = this.defaultCallback) !== null && _a !== void 0 ? _a : callback); | ||
} | ||
@@ -307,6 +308,7 @@ /** | ||
_writev(chunks, callback) { | ||
var _a; | ||
const entries = chunks.map((request) => { | ||
return this.formatEntry_(request.chunk); | ||
}); | ||
this.stackdriverLog.write(entries, callback); | ||
this.stackdriverLog.write(entries, (_a = this.defaultCallback) !== null && _a !== void 0 ? _a : callback); | ||
} | ||
@@ -313,0 +315,0 @@ } |
@@ -7,2 +7,9 @@ # Changelog | ||
### [3.2.2](https://github.com/googleapis/nodejs-logging-bunyan/compare/v3.2.1...v3.2.2) (2022-03-09) | ||
### Bug Fixes | ||
* Use defaultCallback in LoggingBunyan class ([#601](https://github.com/googleapis/nodejs-logging-bunyan/issues/601)) ([f4c01ab](https://github.com/googleapis/nodejs-logging-bunyan/commit/f4c01abe9ee46d89494caa03618500f3a11ee78a)) | ||
### [3.2.1](https://github.com/googleapis/nodejs-logging-bunyan/compare/v3.2.0...v3.2.1) (2022-03-02) | ||
@@ -9,0 +16,0 @@ |
{ | ||
"name": "@google-cloud/logging-bunyan", | ||
"description": "Cloud Logging stream for Bunyan", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"license": "Apache-2.0", | ||
@@ -6,0 +6,0 @@ "author": "Google Inc.", |
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
84800
902