diff options
author | Ben Burdette <bburdette@gmail.com> | 2020-05-13 09:52:36 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2020-05-13 09:52:36 -0600 |
commit | bfca5fc395bdaf5823413e1a1679f1b0b6db29dd (patch) | |
tree | 02a54afa6ae9f4492670946a2732513a3607e5b4 /src/libutil | |
parent | ecbb8e9c0a4374b26defde2cd10932d633affed3 (diff) |
change status messages to info level
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/logging.cc | 6 | ||||
-rw-r--r-- | src/libutil/util.cc | 13 |
2 files changed, 6 insertions, 13 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc index 736ce604e..071a7ec7e 100644 --- a/src/libutil/logging.cc +++ b/src/libutil/logging.cc @@ -251,7 +251,11 @@ bool handleJSONLogMessage(const std::string & msg, } } catch (std::exception & e) { - printError("bad log message from builder: %s", e.what()); + logError( + ErrorInfo { + .name = "Json log message", + .hint = hintfmt("bad log message from builder: %s", e.what()) + }); } return true; diff --git a/src/libutil/util.cc b/src/libutil/util.cc index ac7c2967b..dcf89ff69 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -857,7 +857,7 @@ int Pid::kill() #if __FreeBSD__ || __APPLE__ if (errno != EPERM || ::kill(pid, 0) != 0) #endif - printError((SysError("killing process %d", pid).msg())); + logError(SysError("killing process %d", pid).info()); } return wait(); @@ -1447,17 +1447,6 @@ string base64Decode(const string & s) } -// void callFailure(const std::function<void(std::exception_ptr exc)> & failure, std::exception_ptr exc) -// { -// try { -// failure(exc); -// } catch (std::exception & e) { -// printError("uncaught exception: %s", e.what()); -// abort(); -// } -// } - - static Sync<std::pair<unsigned short, unsigned short>> windowSize{{0, 0}}; |