Skip to content

Commit

Permalink
Update wsudotietrace.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
fcharlie authored Aug 31, 2020
1 parent 53e53c0 commit 75a10e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsudo/wsudotietrace.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class ReportHelper {
return -1;
}
auto um =
bela::narrow::StringCat("[DEBUG] ", TimeNow(), " [", GetCurrentProcessId(), "] ", bela::ToNarrow(msg), "\n");
bela::narrow::StringCat("[ERROR] ", TimeNow(), " [", GetCurrentProcessId(), "] ", bela::ToNarrow(msg), "\n");
DWORD written = 0;
if (WriteFile(fd, um.data(), static_cast<DWORD>(um.size()), &written, nullptr) != TRUE) {
return -1;
Expand Down Expand Up @@ -126,4 +126,4 @@ int WriteError(std::wstring_view msg) {
return TraceHelper::Instance().WriteMessage(msg);
}

} // namespace wsudo::tie
} // namespace wsudo::tie

0 comments on commit 75a10e1

Please sign in to comment.