@@ -36563,7 +36563,7 @@ var createTokenAuth = function createTokenAuth2(token) {
3656336563
3656436564
3656536565;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/version.js
36566- const version_VERSION = "6.1.5 ";
36566+ const version_VERSION = "6.1.6 ";
3656736567
3656836568
3656936569;// CONCATENATED MODULE: ./node_modules/@octokit/core/dist-src/index.js
@@ -36577,6 +36577,21 @@ const noop = () => {
3657736577};
3657836578const consoleWarn = console.warn.bind(console);
3657936579const consoleError = console.error.bind(console);
36580+ function createLogger(logger = {}) {
36581+ if (typeof logger.debug !== "function") {
36582+ logger.debug = noop;
36583+ }
36584+ if (typeof logger.info !== "function") {
36585+ logger.info = noop;
36586+ }
36587+ if (typeof logger.warn !== "function") {
36588+ logger.warn = consoleWarn;
36589+ }
36590+ if (typeof logger.error !== "function") {
36591+ logger.error = consoleError;
36592+ }
36593+ return logger;
36594+ }
3658036595const userAgentTrail = `octokit-core.js/${version_VERSION} ${getUserAgent()}`;
3658136596class Octokit {
3658236597 static VERSION = version_VERSION;
@@ -36644,15 +36659,7 @@ class Octokit {
3664436659 }
3664536660 this.request = request.defaults(requestDefaults);
3664636661 this.graphql = withCustomRequest(this.request).defaults(requestDefaults);
36647- this.log = Object.assign(
36648- {
36649- debug: noop,
36650- info: noop,
36651- warn: consoleWarn,
36652- error: consoleError
36653- },
36654- options.log
36655- );
36662+ this.log = createLogger(options.log);
3665636663 this.hook = hook;
3665736664 if (!options.authStrategy) {
3665836665 if (!options.auth) {
0 commit comments