Index: src/ch/UpdaterDlg.cpp =================================================================== diff -u -N -r6f8b891b60eb0f33199fd29db75d4d9f4a22c248 -r4797e4b6b266900bfdcdf4ca6eda47c216ad9db1 --- src/ch/UpdaterDlg.cpp (.../UpdaterDlg.cpp) (revision 6f8b891b60eb0f33199fd29db75d4d9f4a22c248) +++ src/ch/UpdaterDlg.cpp (.../UpdaterDlg.cpp) (revision 4797e4b6b266900bfdcdf4ca6eda47c216ad9db1) @@ -10,9 +10,9 @@ #include #include #include "WindowsVersion.h" +#include "../libchcore/TLogger.h" #include "resource.h" #include "CfgProperties.h" -#include "../common/TLogger.h" #define UPDATER_TIMER 639 @@ -87,13 +87,13 @@ { CString str; str.Format(_T("Opening a browser with address %s..."), (PCTSTR)strDownloadAddr); - LOG_DEBUG(GetLogger()) << str; + LOG_DEBUG(str); str.Format(_T("url.dll,FileProtocolHandler %s"), (PCTSTR)strDownloadAddr); ULONG_PTR ulRes = (ULONG_PTR)ShellExecute(nullptr, _T("open"), _T("rundll32.exe"), str, nullptr, SW_SHOW); str.Format(_T("ShellExecute returned %I64u"), (unsigned long long)ulRes); - LOG_DEBUG(GetLogger()) << str; + LOG_DEBUG(str); // close the dialog if succeeded; 32 is some arbitrary value from ms docs if(ulRes > 32) @@ -389,7 +389,7 @@ if(!strError.IsEmpty()) { - LOG_ERROR(GetLogger()) << strError; + LOG_ERROR(strError); } }