mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-08-22 15:11:31 +00:00
[idd] helper: open the IDD log directory
The interactive Helper now writes its own log under LocalAppData so it can run with the desktop user token. The tray menu should still take users to the system-wide IDD and service logs under ProgramData. Expose the log-directory resolver and have Open log directory request the ProgramData location explicitly. Keep Helper log storage unchanged.
This commit is contained in:
@@ -101,7 +101,7 @@ inline static void iso8601(wchar_t *buf, size_t count)
|
||||
wcsftime(buf, count, L"%Y-%m-%d %H:%M:%SZ", &utc);
|
||||
}
|
||||
|
||||
inline static std::wstring getLogPath(CDebug::Location location)
|
||||
std::wstring CDebug::GetLogDir(Location location)
|
||||
{
|
||||
PWSTR pszPath;
|
||||
const KNOWNFOLDERID& folder = location == CDebug::Location::LocalAppData ?
|
||||
@@ -133,7 +133,7 @@ inline static std::wstring getLogPath(CDebug::Location location)
|
||||
|
||||
void CDebug::Init(const wchar_t * name, Location location)
|
||||
{
|
||||
m_logDir = getLogPath(location);
|
||||
m_logDir = GetLogDir(location);
|
||||
|
||||
// don't redirect the debug output if running under a debugger
|
||||
if (IsDebuggerPresent())
|
||||
|
||||
Reference in New Issue
Block a user