Skip to content

Commit

Permalink
Change process table log errors to info and fix typo (#6370)
Browse files Browse the repository at this point in the history
  • Loading branch information
Breakwell committed Apr 8, 2020
1 parent cd6ebcd commit 2993321
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions osquery/process/windows/process_ops.cpp
Expand Up @@ -114,7 +114,7 @@ std::unique_ptr<BYTE[]> getSidFromUsername(std::wstring accountName) {
&eSidType);

if (ret == 0 && GetLastError() != ERROR_INSUFFICIENT_BUFFER) {
LOG(INFO) << "Failed to lookup accoun name "
LOG(INFO) << "Failed to lookup account name "
<< wstringToString(accountName.c_str()) << " with "
<< GetLastError();
return nullptr;
Expand All @@ -134,7 +134,7 @@ std::unique_ptr<BYTE[]> getSidFromUsername(std::wstring accountName) {
&domainNameSize,
&eSidType);
if (ret == 0) {
LOG(INFO) << "Failed to lookup accoun name "
LOG(INFO) << "Failed to lookup account name "
<< wstringToString(accountName.c_str()) << " with "
<< GetLastError();
return nullptr;
Expand Down
4 changes: 2 additions & 2 deletions osquery/tables/system/windows/processes.cpp
Expand Up @@ -309,7 +309,7 @@ void getProcessPathInfo(HANDLE& proc,
SecureZeroMemory(path.data(), kMaxPathSize);
auto ret = QueryFullProcessImageNameW(proc, 0, path.data(), &out);
if (ret != TRUE) {
LOG(ERROR) << "Failed to lookup path information for process " << pid;
LOG(INFO) << "Failed to lookup path information for process " << pid;
} else {
r["path"] = SQL_TEXT(wstringToString(path.data()));
}
Expand All @@ -329,7 +329,7 @@ void getProcessPathInfo(HANDLE& proc,
}

if (ret == FALSE) {
LOG(ERROR) << "Failed to get cwd for " << pid << " with " << GetLastError();
LOG(INFO) << "Failed to get cwd for " << pid << " with " << GetLastError();
} else {
r["cwd"] = SQL_TEXT(wstringToString(path.data()));
}
Expand Down

0 comments on commit 2993321

Please sign in to comment.