Repository navigation
chore(systemd): remove hardcoded qt logging rule - #391
Conversation
1. Drop Environment=QT_LOGGING_RULES="*.debug=false" from the user service unit of dde-application-manager 2. Debug output now follows the session's Qt logging configuration instead of being force-disabled by the unit 3. Debug logs can be enabled without editing the installed unit; no other unit in the repo sets logging rules Log: Debug logging of the application manager is no longer forced off by the service unit Influence: Debug logs follow qtlogging.ini/session env; no other behavior change chore(systemd): 移除硬编码的 Qt 日志规则 1. 从 dde-application-manager 用户服务单元中移除 Environment=QT_LOGGING_RULES="*.debug=false" 2. debug 日志改由会话的 Qt 日志配置决定,不再被 unit 强制关闭 3. 无需修改已安装的 unit 即可开启调试日志; 仓库内其余 unit 均未设置日志规则 Log: 应用管理器的调试日志不再被服务单元强制关闭 PMS: TASK-396623 Influence: 调试日志跟随 qtlogging.ini/会话环境,其余行为不变
Reviewer's guide (collapsed on small PRs)Reviewer's GuideRemoves the user systemd unit’s hardcoded Qt logging override, allowing File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: mhduiy, robertkill The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
deepin pr auto review🤖 AI 代码审查报告📊 总体评价
🔍 详细分析1. 语法逻辑 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 无需修改,systemd 单元文件语法正确,移除 Environment 指令后服务单元仍然有效。 2. 代码质量 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 无需修改,变更简洁明了,commit message 清晰描述了变更目的,PR 描述提供了充分的上下文。 3. 代码性能 ✅评价: 优秀 ✅ 通过 潜在问题: 建议: 无需修改,移除环境变量对性能无影响。 4. 代码安全 🔒评价: 优秀 ✅ 通过
安全漏洞详情: 建议: 无需修改,移除硬编码的日志规则不会引入安全漏洞。调试日志的开启与关闭应由会话级配置控制,而非硬编码在 systemd 单元中。 💡 改进建议代码示例# 移除前(misc/systemd/user/org.desktopspec.ApplicationManager1.service.in)
[Service]
Type=dbus
BusName=org.desktopspec.ApplicationManager1
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-application-manager
Environment=QT_LOGGING_RULES="*.debug=false" # <- 被移除的行
Slice=session.slice
Restart=always
RestartSec=500ms
# 移除后
[Service]
Type=dbus
BusName=org.desktopspec.ApplicationManager1
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/dde-application-manager
# Environment 行已移除,调试日志现在遵循会话级 Qt 日志配置
Slice=session.slice
Restart=always
RestartSec=500ms本报告由 AI 代码审查工具自动生成 |
|
/forcemerge |
|
This pr force merged! (status: blocked) |
Removes the hardcoded
QT_LOGGING_RULES="*.debug=false"from the user systemd unit of dde-application-manager.qtlogging.ini/QT_LOGGING_RULESfrom the environment) instead of being force-disabled by the unitPMS: TASK-396623
Summary by Sourcery
Enhancements: