mirror of
https://github.com/mathew-kurian/Scribe.js
synced 2025-04-24 14:25:00 +00:00
Build full path
This commit is contained in:
parent
f5b1af1788
commit
34ace3c62a
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue