Fix references to undefined DATETIME_FORMAT
This commit is contained in:
parent
88f1402503
commit
f01e82b532
1 changed files with 2 additions and 2 deletions
|
@ -437,11 +437,11 @@ export function verbose(message: string) {
|
||||||
}
|
}
|
||||||
|
|
||||||
export function warn(message: string) {
|
export function warn(message: string) {
|
||||||
console.error(chalk.gray('[') + chalk.red('warn') + ' ' + chalk.gray(moment().format(DATETIME_FORMAT) + ']') + ' ' + message);
|
console.error(chalk.gray('[') + chalk.red('warn') + ' ' + chalk.gray(moment().format(LOG_DATETIME_FORMAT) + ']') + ' ' + message);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function error(message: string) {
|
export function error(message: string) {
|
||||||
console.error(chalk.gray('[') + chalk.red('erro') + ' ' + chalk.gray(moment().format(DATETIME_FORMAT) + ']') + ' ' + message);
|
console.error(chalk.gray('[') + chalk.red('erro') + ' ' + chalk.gray(moment().format(LOG_DATETIME_FORMAT) + ']') + ' ' + message);
|
||||||
}
|
}
|
||||||
|
|
||||||
export function upsearchSync(filename: string, startDir = '.') {
|
export function upsearchSync(filename: string, startDir = '.') {
|
||||||
|
|
Loading…
Reference in a new issue