{"record":{"id":"70d62085d826a8f7","repo":"nocobase/nocobase","slug":"ctx-logger-warn","errorCode":null,"errorMessage":"ctx.logger.warn()","messagePattern":"ctx\\.logger\\.warn\\(\\)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"info","filePath":"packages/core/client-v2/src/flow/components/code-editor/runjsCompletions.ts","lineNumber":348,"sourceCode":"    insertText: \"await ctx.sql.runById('sql-uid', { type: 'selectRows' })\",\n    boost: 100,\n  },\n  {\n    label: 'ctx.sql.destroy()',\n    type: 'function',\n    detail: '(uid: string) => Promise<void>',\n    insertText: \"await ctx.sql.destroy('sql-uid')\",\n    boost: 95,\n  },\n  {\n    label: 'ctx.logger.info()',\n    type: 'function',\n    detail: 'Pino logger info',\n    insertText: \"ctx.logger.info({ foo: 1 }, 'message')\",\n    boost: 95,\n  },\n  {\n    label: 'ctx.logger.warn()',\n    type: 'function',\n    detail: 'Pino logger warn',\n    insertText: \"ctx.logger.warn({ foo: 1 }, 'message')\",\n    boost: 95,\n  },\n  {\n    label: 'ctx.logger.error()',\n    type: 'function',\n    detail: 'Pino logger error',\n    insertText: \"ctx.logger.error({ err }, 'message')\",\n    boost: 95,\n  },\n  {\n    label: 'ctx.logger.debug()',\n    type: 'function',\n    detail: 'Pino logger debug',\n    insertText: \"ctx.logger.debug({ foo: 1 }, 'message')\",\n    boost: 95,","sourceCodeStart":330,"sourceCodeEnd":366,"githubUrl":"https://github.com/nocobase/nocobase/blob/fa42722fefe44265490dff2c27d79e2882bce4fa/packages/core/client-v2/src/flow/components/code-editor/runjsCompletions.ts#L330-L366","documentation":"Not a thrown error. This is a completion suggestion entry for `ctx.logger.warn()` in the runjs editor's completions catalog, advertising the Pino-style logger available on the runjs context. It is a static data literal, not a runtime call or failure.","triggerScenarios":"Appears when a user types 'ctx.logger' in the runjs editor and the completion engine surfaces the 'warn' entry with insertText \"ctx.logger.warn({ foo: 1 }, 'message')\".","commonSituations":"Developers authoring runjs scripts exploring the logger API surface; log-scrapers mistakenly attributing the label string as an emitted warning.","solutions":["No action needed — editor suggestion data only.","If searching for real runtime warnings, look at useCodeRunner's logger capture instead of the completions file."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Treat ctx.logger.warn() here as editor suggestion text only.","For real runtime logger warnings, inspect useCodeRunner's captured logger output."],"tags":["autocomplete","logger","client-v2","not-an-error"],"backgroundTag":null,"analyzedSha":"fa42722fefe44265490dff2c27d79e2882bce4fa","analyzedAt":"2026-09-01T00:54:31.202Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T05:18:18.240Z"}