logger catagorizing libs
This commit is contained in:
parent
7a8e542ada
commit
4726a85cf3
12 changed files with 35 additions and 36 deletions
|
|
@ -150,7 +150,7 @@ export class QuestDBInfluxWriter {
|
|||
});
|
||||
|
||||
if (Object.keys(fields).length === 0) {
|
||||
this.logger.warn('No analytics fields to write', { symbol, timestamp: analytics.timestamp });
|
||||
this.logger.debug('No analytics fields to write', { symbol, timestamp: analytics.timestamp });
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -345,7 +345,7 @@ export class QuestDBInfluxWriter {
|
|||
return;
|
||||
} catch (error) {
|
||||
attempt++;
|
||||
this.logger.error(`Write attempt ${attempt} failed`, {
|
||||
this.logger.warn(`Write attempt ${attempt} failed`, {
|
||||
error,
|
||||
linesCount: lines.length,
|
||||
willRetry: attempt <= options.retryAttempts,
|
||||
|
|
@ -425,6 +425,6 @@ export class QuestDBInfluxWriter {
|
|||
*/
|
||||
public destroy(): void {
|
||||
this.clearBuffer();
|
||||
this.logger.info('InfluxDB writer destroyed');
|
||||
this.logger.debug('InfluxDB writer destroyed');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue