fix {depth} display, warnings and doc

- fix call stack depth display with {depth}: remove (5) stripped depths.
- fix warnings in tests
- Explain CLUTCHLOG_HAVE_UNIX_SYSINFO in the README.
This commit is contained in:
Johann Dreo 2021-12-19 08:30:19 +01:00
commit 44ffe6309a
4 changed files with 63 additions and 2 deletions

View file

@ -49,7 +49,7 @@ int main(const int argc, char* argv[])
} else {
try {
log.threshold(log.level_of(argv[1]));
} catch(std::out_of_range err) {
} catch(std::out_of_range& err) {
CLUTCHLOG(critical,err.what());
exit(100);
}