Skip to content

Test tool#377

Merged
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test-tool
Feb 9, 2026
Merged

Test tool#377
c121914yu merged 1 commit intolabring:mainfrom
c121914yu:test-tool

Conversation

@c121914yu
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings February 9, 2026 13:14
@github-actions
Copy link

github-actions bot commented Feb 9, 2026

Build Successful - Preview Images for this PR:

registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-plugin-pr:0bb0ace7dd15ceadd25b6993a1305d224b600121

Changed packages:
None

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates runtime configuration templates and refines the Logtape logger setup to better support multiple sinks with different log levels.

Changes:

  • Updated runtime/.env.template defaults/comments (including cache default) and removed duplicated entries.
  • Refactored configureLogger to compose enabled sinks and apply per-sink level filters while using a shared lowestLevel across categories.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
runtime/.env.template Adjusts environment template defaults/comments and cleans up duplicate config lines.
lib/logger/index.ts Composes console/OTEL sinks and adds per-sink level filtering with a unified per-category logger config.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@@ -1,17 +1,23 @@
# ================ 系统 =====================
PORT=3000
AUTH_TOKEN=94d2c3e42bab07e9a6ea55ae790d493ba0e10e8a20052242ed0cb6298ebcdb4a
Copy link

Copilot AI Feb 9, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runtime/.env.template hard-codes a long AUTH_TOKEN value. Since lib/env.ts defaults AUTH_TOKEN to an empty string and other templates use obvious placeholders, keeping a realistic-looking token in the template can lead to people deploying with a known/shared token. Consider changing this to an empty value or a clear placeholder (and optionally add a short note that it must be set to a strong secret in real deployments).

Suggested change
AUTH_TOKEN=94d2c3e42bab07e9a6ea55ae790d493ba0e10e8a20052242ed0cb6298ebcdb4a
AUTH_TOKEN= # 必须在实际部署时设置为强随机密钥

Copilot uses AI. Check for mistakes.
@c121914yu c121914yu merged commit 1125980 into labring:main Feb 9, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants