Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装ui插件后,日志文件不再遵循配置设置 #1967

Open
PikuZheng opened this issue Apr 9, 2025 · 3 comments
Open

安装ui插件后,日志文件不再遵循配置设置 #1967

PikuZheng opened this issue Apr 9, 2025 · 3 comments

Comments

@PikuZheng
Copy link
Contributor

问题现象
加载ui插件后,日志文件不再记录,除非登入ui并在“日志”中调整日志级别。

由于ui内默认的日志级别为“警告”,这导致日志文件无法记录smartdns启动时的调试日志。

运行环境

  1. 固件型号
    x86_64 容器运行

  2. 运营商
    不涉及

  3. smartdns来源以及版本
    最新代码自行编译

  4. 涉及的配置(注意去除个人相关信息)

log-level debug
log-size 1M
log-num 5
log-file /etc/smartdns/log/smartdns.log

重现步骤

  1. 上游DNS配置。
    不涉及

  2. 访问的域名。
    不涉及

信息收集

  1. 将/var/log/smrtdns.log日志作为附件上传(注意去除个人相关信息)。
  2. 如进程异常,请将coredump功能开启,上传coredump信息文件,同时上传配套的smartdns进程文件。
    在自定义界面,开启设置->自定义设置->生成coredump配置,重现问题后提交coredump文件
    coredump文件在/tmp目录下
[2025-04-09 02:41:49,682][NOTICE][       smartdns.c:602 ] smartdns starting...(Copyright (C) Nick Peng <[email protected]>, build: 1.2025.v46.1.16)
[2025-04-09 02:41:49,684][ INFO][     dns_server.c:9253] bind ip [::]:53, type 0
[2025-04-09 02:41:49,684][ INFO][     dns_server.c:9253] bind ip [::]:53, type 1
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:1474] ping 2001::, id = 1
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:1252] from          2001::: error is Network unreachable
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:679 ] ping 2001:: end, id 1
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:1474] ping 2001::, id = 2
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:1252] from          2001::: error is Network unreachable
[2025-04-09 02:41:49,693][DEBUG][      fast_ping.c:679 ] ping 2001:: end, id 2
[2025-04-09 02:41:49,693][ INFO][     dns_server.c:9574] IPV6 is not ready or speed check is disabled, disable IPV6 features
[2025-04-09 02:41:49,693][ INFO][     dns_server.c:9463] auto enable cache persist.
[2025-04-09 02:41:49,693][ INFO][      dns_cache.c:773 ] load cache file /etc/smartdns/smartdns.cache, total 267 records
[2025-04-09 02:41:49,824][ INFO][     dns_client.c:1504] add server 223.6.6.6:443, type: http3
[2025-04-09 02:41:49,831][ INFO][        plugin.rs:113 ] www root: /wwwroot
[2025-04-09 02:41:49,832][ INFO][   data_server.rs:287 ] open db: /etc/smartdns/smartdns.db
[2025-04-09 02:41:49,835][DEBUG][    data_stats.rs:181 ] init data stats
[2025-04-09 02:41:49,835][DEBUG][    data_stats.rs:183 ] init data stats complete
---- 此后不再产生debug日志
@pymumu
Copy link
Owner

pymumu commented Apr 9, 2025

启用UI后,配置以UI为主

@xiaobaishu1
Copy link

启用UI后,配置以UI为主

日志内容不能复制,想百度看看是啥问题都不能复制还得访问日志文件!

@PikuZheng
Copy link
Contributor Author

能否为ui增加配置默认日志级别

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants