mirror of
https://github.com/XTXMarkets/ternfs.git
synced 2026-01-08 12:00:16 -06:00
Also, produce fully static binaries. This means that `gethostname` does not work (doesn't work with static glibc unless you build it with `--enable-static-nss`, which no distro builds glibc with).
20 lines
425 B
C++
20 lines
425 B
C++
#include "Env.hpp"
|
|
#include "Assert.hpp"
|
|
|
|
std::ostream& operator<<(std::ostream& out, LogLevel ll) {
|
|
switch (ll) {
|
|
case LogLevel::LOG_DEBUG:
|
|
out << "DEBUG";
|
|
break;
|
|
case LogLevel::LOG_INFO:
|
|
out << "INFO";
|
|
break;
|
|
case LogLevel::LOG_ERROR:
|
|
out << "ERROR";
|
|
break;
|
|
default:
|
|
throw EGGS_EXCEPTION("bad log level %s", (uint32_t)ll);
|
|
}
|
|
return out;
|
|
}
|