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