[
https://issues.apache.org/jira/browse/DAEMON-407?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Mark Thomas resolved DAEMON-407.
--------------------------------
Fix Version/s: 1.2.1
Resolution: Fixed
Thanks for the report.
> Prunmgr displays incorrect logging level.
> -----------------------------------------
>
> Key: DAEMON-407
> URL: https://issues.apache.org/jira/browse/DAEMON-407
> Project: Commons Daemon
> Issue Type: Bug
> Components: Procrun
> Affects Versions: 1.2.0
> Reporter: hagami
> Priority: Minor
> Fix For: 1.2.1
>
>
> After installing Tomcat8, Logging Level is registered as "Info" in registry.
> But Tomcat8w(prunmgr) displays Level "Warn" on Logging tab.
> There is a mismatch of LOGL_xxx order in prunmgr.c#945-960
> {code:java}
> ComboBox_AddStringW(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> LOGL_ERROR);
> ComboBox_AddStringW(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> LOGL_WARN);
> ComboBox_AddStringW(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> LOGL_INFO);
> ComboBox_AddStringW(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> LOGL_DEBUG);
> if ((b = apxRegistryGetStringW(hRegserv,
> APXREG_PARAMSOFTWARE,
> _s_log, L"Level")) != NULL) {
> if (!lstrcmpiW(b, LOGL_ERROR))
> ComboBox_SetCurSel(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> 0);
> else if (!lstrcmpiW(b, LOGL_INFO))
> ComboBox_SetCurSel(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> 1);
> else if (!lstrcmpiW(b, LOGL_WARN))
> ComboBox_SetCurSel(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> 2);
> else
> ComboBox_SetCurSel(GetDlgItem(hDlg, IDC_PPLGLEVEL),
> 3);
> apxFree(b);
> }
> {code}
> ComboBox_AddStringW's orderĀ is LOGL_WARN, LOGL_INFO, but
> ComboBox_SetCurSel's order is LOGL_INFO, LOG_WARN.
--
This message was sent by Atlassian Jira
(v8.3.2#803003)