Better usage of pino

This commit is contained in:
Fedor Indutny
2025-06-16 09:47:18 -07:00
committed by GitHub
parent 58f006aac2
commit f6c19c548e
60 changed files with 489 additions and 738 deletions

View File

@@ -17,6 +17,7 @@ import {
DirectCallStatus,
GroupCallStatus,
} from '../../types/CallDisposition';
import { toLogFormat } from '../../types/errors';
import type { CallingNotificationType } from '../../util/callingNotification';
import {
getCallingIcon,
@@ -241,7 +242,7 @@ function renderCallingNotificationButton(
log.warn('CallingNotification for adhoc call, should never happen');
return null;
default:
log.error(missingCaseError(props.callHistory.mode));
log.error(toLogFormat(missingCaseError(props.callHistory.mode)));
return null;
}