aboutsummaryrefslogtreecommitdiff
path: root/src/libutil
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2020-05-13 09:52:36 -0600
committerBen Burdette <bburdette@gmail.com>2020-05-13 09:52:36 -0600
commitbfca5fc395bdaf5823413e1a1679f1b0b6db29dd (patch)
tree02a54afa6ae9f4492670946a2732513a3607e5b4 /src/libutil
parentecbb8e9c0a4374b26defde2cd10932d633affed3 (diff)
change status messages to info level
Diffstat (limited to 'src/libutil')
-rw-r--r--src/libutil/logging.cc6
-rw-r--r--src/libutil/util.cc13
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}};