build ok,
This commit is contained in:
@@ -40,11 +40,7 @@ export function logger(label: string, value: unknown, breakLine: boolean = false
|
||||
if (value === null || value === undefined) {
|
||||
formattedValue = String(value);
|
||||
} else if (type === 'object') {
|
||||
formattedValue = JSON.stringify(
|
||||
value,
|
||||
null,
|
||||
breakLine || JSON.stringify(value).length > 50 ? 2 : 0
|
||||
);
|
||||
formattedValue = JSON.stringify(value, null, breakLine || JSON.stringify(value).length > 50 ? 2 : 0);
|
||||
} else {
|
||||
formattedValue = String(value);
|
||||
}
|
||||
|
Reference in New Issue
Block a user