#184 - Verbose logging

This commit is contained in:
Simon Cambier
2023-03-11 14:43:29 +01:00
parent 58db940b68
commit 24bfb94b71
6 changed files with 61 additions and 28 deletions

View File

@@ -324,3 +324,9 @@ export function chunkArray<T>(arr: T[], len: number): T[][] {
export function splitCamelCase(text: string): string[] {
return text.replace(/([a-z](?=[A-Z]))/g, '$1 ').split(' ')
}
export function logDebug(...attr: any[]): void {
if (settings.verboseLogging) {
console.log(...['Omnisearch -', ...attr])
}
}