Fixed incorrect variable used to match log filename

Fixes #19
This commit is contained in:
Björn Dahlgren 2015-11-22 11:06:40 +01:00
parent 10f7768356
commit 8fda40f48d

View File

@ -81,7 +81,7 @@ Logs.prototype.getLogFile = function (filename, callback) {
callback(err);
} else {
var validLogs = files.filter(function (file) {
return file.name === requestedFilename;
return file.name === filename;
});
if (validLogs.length > 0) {