Skip to content

Commit

Permalink
Using console as a default value.
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinTail committed Mar 1, 2024
1 parent 7e186bd commit 6aab750
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const busboy = require('busboy'); // eslint-disable-line no-unused-vars

const DEFAULT_OPTIONS = {
debug: false,
logger: undefined,
logger: console,
uploadTimeout: 60000,
fileHandler: false,
uriDecodeFileNames: false,
Expand Down
2 changes: 1 addition & 1 deletion lib/utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ let tempCounter = 0;
const debugLog = (options, msg) => {
const opts = options || {};
if (!opts.debug) return false;
(opts.logger || console).log(`Express-file-upload: ${msg}`);
opts.logger.log(`Express-file-upload: ${msg}`);
return true;
};

Expand Down

0 comments on commit 6aab750

Please sign in to comment.