Fix printing of variables passed in to the logger

This commit is contained in:
Kienan Stewart 2019-09-07 20:27:26 -04:00
parent 8b4da4e6c0
commit 712da0e988
No known key found for this signature in database
GPG Key ID: 075A846E78FE47EA
1 changed files with 1 additions and 0 deletions

View File

@ -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);