drogonframework / drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows
MIT License
11.04k stars 1.06k forks source link

Fix an error in the yaml format config file #2020

Closed tanglong3bf closed 1 month ago

tanglong3bf commented 1 month ago

There is an error in the app.log.use_spdlog item in the default config file in the yaml format. While fixing this error, other minor problems in the config files were fixed. For example, some spelling errors and missing items in yaml format. At the same time, different config files are modified to store the same content.

tanglong3bf commented 1 month ago
  1. 数据库和redis的客户端,两边都明确指定了name,主要是考虑yaml这边注释和数组语法的冲突;
  2. yaml格式配置文件里app.log.use_spdlog这一项做出了修改,之前带个逗号,会被识别为字符串;(主要就是为了改它)
  3. 插件和自定义配置按照json格式的进行修改;
  4. 修复了一些拼写错误:clinet defaut之类的;
  5. 修改了json格式的一些缩进。
an-tao commented 1 month ago

@tanglong3bf 感谢 custom_config好像测试里用到了,如果把它清了(那些和验证相关的配置),需要在测试的脚本里补上。