Maybe fix line overlap for progress bars?

This commit is contained in:
AnimeDL 2024-04-22 07:41:38 -07:00
parent 501928b92d
commit 6d1926cca3

View file

@ -28,10 +28,10 @@ const makeLogger = () => {
console: { console: {
type: 'console', layout: { type: 'console', layout: {
type: 'pattern', type: 'pattern',
pattern: process.env.isGUI === 'true' ? '%[%x{info}%m%]' : '%x{info}%m', pattern: process.env.isGUI === 'true' ? '\r%[%x{info}%m%]' : '\r%x{info}%m',
tokens: { tokens: {
info: (ev) => { info: (ev) => {
return ev.level.levelStr === 'INFO' ? '' : `[${ev.level.levelStr}] `; return ev.level.levelStr === 'INFO' ? '\r' : `\r[${ev.level.levelStr}] `;
} }
} }
} }