1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-12-12 13:48:28 +09:00

Simplify log domain

This commit is contained in:
syuilo 2019-07-01 03:25:31 +09:00
parent 06b1203ef9
commit d764316708
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -5,7 +5,7 @@ import chalk from 'chalk';
import Logger from '../services/logger'; import Logger from '../services/logger';
export async function downloadUrl(url: string, path: string) { export async function downloadUrl(url: string, path: string) {
const logger = new Logger('download-url'); const logger = new Logger('download');
await new Promise((res, rej) => { await new Promise((res, rej) => {
logger.info(`Downloading ${chalk.cyan(url)} ...`); logger.info(`Downloading ${chalk.cyan(url)} ...`);