Fix printing of variables passed in to the logger
This commit is contained in:
parent
8b4da4e6c0
commit
712da0e988
|
@ -105,6 +105,7 @@ class Logger {
|
|||
char buf[1024];
|
||||
memset(buf, 0, 1024*sizeof(char));
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
vsnprintf(buf, 1024, fmt, args);
|
||||
for (int i = 0; i < this->fd_count ; i++) {
|
||||
fprintf(this->fds[i], "[%s]\t%s\n", this->mapLevel(level), buf);
|
||||
|
|
Loading…
Reference in New Issue