Skip to content

Commit

Permalink
Buang logger dari main index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
kucingbasah737 committed Nov 25, 2023
1 parent c6a0e02 commit c9e58c1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
/* eslint-disable no-console */
const MODULE_NAME = 'MAIN';
// const MODULE_NAME = 'MAIN';

process.chdir(__dirname);

require('dotenv').config();
const prompt = require('prompt');
const yargs = require('yargs/yargs');
const { hideBin } = require('yargs/helpers');
const logger = require('./lib/logger');
// const logger = require('./lib/logger');
const sdNotify = require('./lib/sd-notify');

const updatePasswordCmd = async () => {
Expand Down Expand Up @@ -58,7 +58,7 @@ const runWebServer = async () => {

webserver();

logger.info(`${MODULE_NAME} 300582D4: Starting webserver`);
// logger.info(`${MODULE_NAME} 300582D4: Starting webserver`);
if (process.env.SYSTEMD_NOTIFY) {
sdNotify();
}
Expand Down

0 comments on commit c9e58c1

Please sign in to comment.