Skip to content

Commit e082419

Browse files
committed
fix(eventlogger): change event log enable condition from professional-only to non-community 为 EventLogger 事件日志启用条件由仅专业版改为非社区版
PMS: BUG-362029
1 parent 248a3ac commit e082419

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cpp-include/eventlogger.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@
1818
namespace DDE_EventLogger {
1919

2020
// Check if event logging should be enabled based on system edition
21-
// Only UosProfessional is enabled by default
21+
// Enable for all editions except UosCommunity
2222
inline bool shouldEnableEventLog()
2323
{
24-
// Production mode: only enable for UosProfessional edition
24+
// Production mode: enable for all editions except UosCommunity
2525
// Note: DSysInfo is in Dtk::Core namespace
26-
return Dtk::Core::DSysInfo::uosEditionType() == Dtk::Core::DSysInfo::UosProfessional;
26+
return Dtk::Core::DSysInfo::uosEditionType() != Dtk::Core::DSysInfo::UosCommunity;
2727
}
2828

2929
typedef bool (*Initialize)(const std::string &package_id, bool enable_sig);

0 commit comments

Comments
 (0)