From 4ffb09e2b875e45a3239c264a1e73ce45034921d Mon Sep 17 00:00:00 2001 From: jusax23 Date: Thu, 6 Apr 2023 23:17:27 +0200 Subject: [PATCH] change warn color to orange --- src/sys/log.ts | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/sys/log.ts b/src/sys/log.ts index 3be1d6d..66bd3d2 100644 --- a/src/sys/log.ts +++ b/src/sys/log.ts @@ -37,10 +37,11 @@ export const warn = (name: string, ...args: any[]) => { let dateString = (new Date()).toLocaleString(); console.warn( "\x1b[33m%s\x1b[0m" + - "\x1b[1m\x1b[36m%s\x1b[0m", - dateString, - ` [${name}]:`, - ...args + "\x1b[1m\x1b[48;5;208m%s\x1b[0m\x1b[48;5;208m", + dateString+" ", + `[${name}]:`, + ...args, + "\x1b[0m" ); if (global.provideLog != 0) logList.push([logID++, "warn", dateString, name, args]); };