feat: adds proper logging support
This commit is contained in:
13 files changed
+187
-38
No files matched your search
@@ -3,7 +3,7 @@ import { summarizerQueryParams, type SummarizerQueryParams } from './params.js';
|
||||
import API from '../../BraveAPI/index.js';
|
||||
import { type QueryParams as WebQueryParams } from '../web/params.js';
|
||||
import { SummarizerSearchApiResponse } from './types.js';
|
||||
import { log } from '../../utils.js';
|
||||
import ClientLogger from '../../ClientLogger.js';
|
||||
|
||||
export const name = 'brave_summarizer';
|
||||
|
||||
@@ -82,7 +82,7 @@ const pollForSummary = async (
|
||||
result = response;
|
||||
}
|
||||
} catch (error) {
|
||||
await log('error', `Error polling for summarizer results: ${error}`);
|
||||
await ClientLogger.log('error', `Error polling for summarizer results: ${error}`);
|
||||
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user