From 29933213df3e3b726f933d7640b33de265f6c86e Mon Sep 17 00:00:00 2001 From: Breakwell <48999626+Breakwell@users.noreply.github.com> Date: Thu, 9 Apr 2020 00:41:42 +0100 Subject: [PATCH] Change process table log errors to info and fix typo (#6370) --- osquery/process/windows/process_ops.cpp | 4 ++-- osquery/tables/system/windows/processes.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/osquery/process/windows/process_ops.cpp b/osquery/process/windows/process_ops.cpp index 22d96f360ca..b7348b5a2e9 100644 --- a/osquery/process/windows/process_ops.cpp +++ b/osquery/process/windows/process_ops.cpp @@ -114,7 +114,7 @@ std::unique_ptr 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; @@ -134,7 +134,7 @@ std::unique_ptr 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; diff --git a/osquery/tables/system/windows/processes.cpp b/osquery/tables/system/windows/processes.cpp index ddd99dddf09..4c1fc47c407 100644 --- a/osquery/tables/system/windows/processes.cpp +++ b/osquery/tables/system/windows/processes.cpp @@ -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())); } @@ -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())); }