From c697a7c5e5966445509fddbd3f5dafee68f4b65d Mon Sep 17 00:00:00 2001 From: tycrek Date: Mon, 18 Apr 2022 16:11:07 -0600 Subject: [PATCH] Fixed logs in .js files --- src/metrics.js | 2 +- src/setup.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/metrics.js b/src/metrics.js index 071fe97..1a7d2e2 100644 --- a/src/metrics.js +++ b/src/metrics.js @@ -4,7 +4,7 @@ const { s3enabled } = require('../config.json'); const { formatBytes } = require('./utils'); const { bucketSize } = require('./storage'); -const TLog = require('@tycrek/log'); +const { TLog } = require('@tycrek/log'); const log = new TLog({ level: 'debug', timestamp: { enabled: false } }); module.exports = () => { diff --git a/src/setup.js b/src/setup.js index ad2efbe..f2ed456 100644 --- a/src/setup.js +++ b/src/setup.js @@ -57,7 +57,7 @@ function getConfirmSchema(description) { // If directly called on the command line, run setup script function doSetup() { const path = (...paths) => require('path').join(process.cwd(), ...paths); - const TLog = require('@tycrek/log'); + const { TLog } = require('@tycrek/log'); const fs = require('fs-extra'); const prompt = require('prompt'); const token = require('./generators/token');