Create BxLogger to show colored logs

This commit is contained in:
redphx
2024-04-30 18:52:56 +07:00
parent 26c318fb8d
commit edc8991a6a
9 changed files with 59 additions and 15 deletions

View File

@@ -5,6 +5,7 @@ import { StreamBadges } from "./stream-badges"
import { CE } from "../../utils/html"
import { t } from "../../utils/translation"
import { STATES } from "../../utils/global"
import { BxLogger } from "../../utils/bx-logger"
export enum StreamStat {
PING = 'ping',
@@ -274,7 +275,7 @@ export class StreamStats {
// Get server type
if (candidateId) {
console.log('candidate', candidateId, allCandidates);
BxLogger.info('candidate', candidateId, allCandidates);
StreamBadges.ipv6 = allCandidates[candidateId].includes(':');
}