Skip to content

Commit

Permalink
add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
zadjii-msft committed Apr 19, 2022
1 parent a74b45a commit 446d07e
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions src/cascadia/TerminalControl/ContentProcess.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,12 @@ namespace winrt::Microsoft::Terminal::Control::implementation
static_cast<DWORD>(callersPid)) };
if (hWindowProcess.get() == nullptr)
{
const auto gle = GetLastError();
gle;
// TODO! tracelog an error here
TraceLoggingWrite(g_hTerminalControlProvider,
"ContentProcess::RequestSwapChainHandle_OpenOtherProcessFailed",
TraceLoggingLevel(WINEVENT_LEVEL_VERBOSE),
TraceLoggingKeyword(TIL_KEYWORD_TRACE));

LOG_LAST_ERROR();
return 0;
}

Expand All @@ -88,9 +91,12 @@ namespace winrt::Microsoft::Terminal::Control::implementation
DUPLICATE_SAME_ACCESS);
if (!success)
{
const auto gle = GetLastError();
gle;
// TODO! tracelog an error here
TraceLoggingWrite(g_hTerminalControlProvider,
"ContentProcess::RequestSwapChainHandle_DuplicateHandleFailed",
TraceLoggingLevel(WINEVENT_LEVEL_VERBOSE),
TraceLoggingKeyword(TIL_KEYWORD_TRACE));

LOG_LAST_ERROR();
return 0;
}

Expand Down

1 comment on commit 446d07e

@github-actions

This comment was marked as outdated.

Please sign in to comment.