fix ui: fix console.debug output in player

This commit is contained in:
nick-delirium 2024-07-01 14:04:08 +02:00
parent e7578a1bad
commit 2d154200a0
No known key found for this signature in database
GPG key ID: 93ABD695DF5FDBA0
3 changed files with 2 additions and 1 deletions

View file

@ -26,6 +26,7 @@ const LEVEL_TAB = {
[LogLevel.WARN]: WARNINGS,
[LogLevel.ERROR]: ERRORS,
[LogLevel.EXCEPTION]: ERRORS,
[LogLevel.DEBUG]: INFO,
} as const;
const TABS = [ALL, ERRORS, WARNINGS, INFO].map((tab) => ({ text: tab, key: tab }));

View file

@ -225,7 +225,6 @@ export default class TabSessionManager {
break;
/* Lists: */
case MType.ConsoleLog:
if (msg.level === 'debug') break;
this.lists.lists.log.append(
// @ts-ignore : TODO: enums in the message schema
Log(msg)

View file

@ -5,6 +5,7 @@ export const enum LogLevel {
WARN = 'warn',
ERROR = 'error',
EXCEPTION = 'exception',
DEBUG = 'debug',
}
export interface ILog {