From baf302f12c1183be69f2511b7642f32be7f4d524 Mon Sep 17 00:00:00 2001 From: Lolcow Admin Date: Fri, 11 Dec 2015 00:03:18 -0500 Subject: [PATCH] Use absolute path for counters.log Puts it in line with the other uses of `Logger.Logger`. Allows running outside of pwd. --- src/counters.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/counters.js b/src/counters.js index 13dbada1..21f679a4 100644 --- a/src/counters.js +++ b/src/counters.js @@ -1,5 +1,6 @@ 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 io from 'socket.io'; import Socket from 'socket.io/lib/socket';