Use absolute path for counters.log

Puts it in line with the other uses of `Logger.Logger`. Allows running outside of pwd.
This commit is contained in:
Lolcow Admin 2015-12-11 00:03:18 -05:00
parent 11d4c4ca62
commit baf302f12c
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
var Logger = require('./logger'); var Logger = require('./logger');
var counterLog = new Logger.Logger('counters.log'); var path = require('path');
var counterLog = new Logger.Logger(path.resolve(__dirname, '..', 'counters.log'));
import os from 'os'; import os from 'os';
import io from 'socket.io'; import io from 'socket.io';
import Socket from 'socket.io/lib/socket'; import Socket from 'socket.io/lib/socket';