subconverter
subconverter copied to clipboard
[BUG] example_external_config.ini 中 template 设置不生效
确认版本最新
- [X] 我已经确认在最新Action编译的版本中复现
检索issue
- [X] 我已经确认之前没有issue涉及此BUG
subconverter版本
v0.7.1 linux 64
转换过程
无
转换设置
无
复现步骤
- cp pref.example.ini pref.ini
- 取消 profiles/example_profile.ini 第 9 行 config 注释
- 修改 config/example_external_config.ini
[template] clash.log_level=debug
- ./subconverter -g --artifact test_profile
期望结果
output.yml 中
log-level: debug
实际结果
output.yml 中
log-level: info
错误信息
2022/02/19 Sat 01:04:27.610519 [1235686 10735032][INFO] Reading generator configuration...
2022/02/19 Sat 01:04:27.610747 [1235686 10735032][INFO] Read generator configuration completed.
2022/02/19 Sat 01:04:27.610804 [1235686 10735032][INFO] Generating with specific artifacts: "test_profile"...
2022/02/19 Sat 01:04:27.611064 [1235686 10735032][INFO] Generating artifact 'test_profile'...
2022/02/19 Sat 01:04:27.611142 [1235686 10735032][INFO] Trying to load profile 'profiles/example_profile.ini'.
2022/02/19 Sat 01:04:27.611306 [1235686 10735032][INFO] Trying to parse profile 'profiles/example_profile.ini'.
2022/02/19 Sat 01:04:27.611784 [1235686 10735032][INFO] External configuration file provided. Loading...
2022/02/19 Sat 01:04:27.613971 [1235686 10735032][INFO] Fetching node data from url 'ss://[email protected]:1080#Example'.
2022/02/19 Sat 01:04:27.616794 [1235686 10735032][INFO] Generate target: Clash
2022/02/19 Sat 01:04:27.689442 [1235686 10735032][INFO] Generate completed.
2022/02/19 Sat 01:04:27.690315 [1235686 10735032][INFO] Artifact 'test_profile' generate SUCCESS!
2022/02/19 Sat 01:04:27.690422 [1235686 10735032][INFO] All artifact generated. Exiting...
根据此处 该参数由 pref 中的 template 控制 应修改此部分使其从 local.clash.log_level
获取