diff --git a/daily-rotate-file.js b/daily-rotate-file.js index 62a6b93..19adc62 100644 --- a/daily-rotate-file.js +++ b/daily-rotate-file.js @@ -92,7 +92,7 @@ var DailyRotateFile = function (options) { create_symlink: options.createSymlink ? options.createSymlink : false, symlink_name: options.symlinkName ? options.symlinkName : 'current.log', watch_log: options.watchLog ? options.watchLog : false, - audit_hash_type: options.auditHashType || 'sha256' + audit_hash_type: options.auditHashType ? options.auditHashType : 'sha256' }); this.logStream.on('new', function (newFile) {