prettier logger

This commit is contained in:
2025-12-22 14:06:40 +01:00
parent d35be78720
commit d4c7ffdfc1
8 changed files with 44 additions and 30 deletions

View File

@@ -45,7 +45,7 @@ std::string pBytes(double bytes, bool isKbytes) {
ssize_t readFile(const char* path, char* buffer, size_t maxlen) {
int fd = open(path, O_RDONLY | O_CLOEXEC);
if (fd < 0) {
log(LOG::ERR, "readFile2", "Error reading {}", path);
log(LOG::ERR, "Error reading {}", path);
return 0;
}
ssize_t len = read(fd, buffer, maxlen - 1);