From 8196f711bcb1ae4bca2700bee20c730d5a23ecf9 Mon Sep 17 00:00:00 2001 From: modeco80 Date: Fri, 2 Feb 2024 07:56:46 -0500 Subject: [PATCH] whoops --- src/Process.cpp | 4 ++-- src/main.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Process.cpp b/src/Process.cpp index 157d8f8..5145723 100644 --- a/src/Process.cpp +++ b/src/Process.cpp @@ -60,8 +60,8 @@ namespace nanosm { void Process::OnReady(int eventMask) { // In our case, any readiness signaled by the pidfd means the process exited - // so this will never block (or really, wait). But in the case that it does - auto res = waitid(P_PIDFD, pidFd, &siginfo, WNOHANG | WEXITED); + // so this will never block (or really, wait). + waitid(P_PIDFD, pidFd, &siginfo, WNOHANG | WEXITED); // Post a callback to call the user's exit callback (if one exists) eventLoop.Post([self = shared_from_this()]() { diff --git a/src/main.cpp b/src/main.cpp index bc667b8..593faa9 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -26,12 +26,12 @@ namespace nanosm::log { template constexpr void Warn(std::string_view component, std::string formatString, Args... args) { - return LogImpl(component, "Info", formatString, std::make_format_args(args...)); + return LogImpl(component, "Warning", formatString, std::make_format_args(args...)); } template constexpr void Error(std::string_view component, std::string formatString, Args... args) { - return LogImpl(component, "Info", formatString, std::make_format_args(args...)); + return LogImpl(component, "Error", formatString, std::make_format_args(args...)); } } // namespace nanosm::log