mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 07:37:39 +00:00
feat: load puppeteer faster, run stores in parallel (#83)
Co-authored-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
+2
-1
@@ -1,4 +1,5 @@
|
||||
import winston, {format} from 'winston';
|
||||
import {Config} from './config';
|
||||
|
||||
const prettyJson = format.printf(info => {
|
||||
const timestamp = new Date().toLocaleTimeString();
|
||||
@@ -11,7 +12,7 @@ const prettyJson = format.printf(info => {
|
||||
});
|
||||
|
||||
export const Logger = winston.createLogger({
|
||||
level: process.env.LOG_LEVEL ?? 'info',
|
||||
level: Config.logLevel,
|
||||
format: format.combine(
|
||||
format.colorize(),
|
||||
format.prettyPrint(),
|
||||
|
||||
Reference in New Issue
Block a user