mirror of
https://github.com/PrivateBin/PrivateBin.git
synced 2025-05-02 06:26:16 -04:00
remove console suppression, fixing I18n mock
This commit is contained in:
parent
4edbb66c91
commit
70007285bf
2 changed files with 6 additions and 9 deletions
|
@ -50,15 +50,9 @@ var a2zString = ['a','b','c','d','e','f','g','h','i','j','k','l','m',
|
|||
'`': '`',
|
||||
'=': '='
|
||||
},
|
||||
logFile = fs.createWriteStream('test.log'),
|
||||
mimeFile = fs.createReadStream('/etc/mime.types'),
|
||||
mimeLine = '';
|
||||
|
||||
// redirect console messages to log file
|
||||
console.info = console.warn = console.error = function () {
|
||||
logFile.write(Array.prototype.slice.call(arguments).join('') + '\n');
|
||||
};
|
||||
|
||||
// populate mime types from environment
|
||||
mimeFile.on('data', function(data) {
|
||||
mimeLine += data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue