prettier logger
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user