Build full path

This commit is contained in:
Guillaume Wuip 2014-09-09 11:40:20 +02:00
parent f5b1af1788
commit 34ace3c62a

View file

@ -305,7 +305,7 @@ self.express.controlPanel = function() {
var type = req.param('type');
type = type ? type : "log";
var filepath = path.join(activeDir, "app." + type);
var filepath = path.join($.logPath, date, $.mainUser, "app." + type);
if (fs.existsSync(filepath)) {
var stream = fs.createReadStream(filepath);