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

@@ -4,6 +4,7 @@
import * as log from '../../logging/log';
import { getHSL } from './color';
import { missingCaseError } from '../../util/missingCaseError';
import { toLogFormat } from '../../types/errors';
export enum TextStyle {
Regular = 'Regular',
@@ -38,7 +39,7 @@ export function getTextStyleAttributes(
textBackgroundColor: '',
};
default:
log.error(missingCaseError(textStyle));
log.error(toLogFormat(missingCaseError(textStyle)));
return getTextStyleAttributes(TextStyle.Regular, hueSliderValue);
}
}