Skip to content

Commit

Permalink
Get rid of mkdirp.
Browse files Browse the repository at this point in the history
  • Loading branch information
reynoldsalec committed Oct 31, 2023
1 parent 7c30cfb commit bd0daff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Modules
const _ = require('lodash');
const dayjs = require('dayjs');
const mkdirp = require('mkdirp');
const fs = require('fs');
const path = require('path');
const serialize = require('winston/lib/winston/common').serialize;
const util = require('util');
Expand Down Expand Up @@ -176,7 +176,7 @@ module.exports = class Log extends winston.Logger {
// If we have a log path then let's add in some file transports
if (logDir) {
// Ensure the log dir actually exists
mkdirp.sync(logDir);
fs.mkdirSync(logDir, {recursive: true});
// Add in our generic and error logs
transports.push(new winston.transports.File({
name: 'error-file',
Expand Down

0 comments on commit bd0daff

Please sign in to comment.