You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Proposal:
I would like to disable warnings of write failure or at least provide a logger function to the package so i would be able to handle the warnings correctly.
Current behavior:
currently it fills my logs with big stacks where a custom logger function would be so much useful
WARN: Write to InfluxDB failed (attempt: 1). w [RequestTimedOutError]: Request timed out
at ClientRequest.<anonymous> (file:///root/docker/check/node_modules/@influxdata/influxdb-client/dist/index.mjs:15:10709)
at ClientRequest.emit (node:events:390:28)
at TLSSocket.emitRequestTimeout (node:_http_client:763:9)
at Object.onceWrapper (node:events:509:28)
at TLSSocket.emit (node:events:402:35)
at TLSSocket.Socket._onTimeout (node:net:501:8)
at listOnTimeout (node:internal/timers:557:17)
at processTimers (node:internal/timers:500:7)
Desired behavior:
For exemple
function logger(data) {
console.log('warning', data);
}
const writeApi = new InfluxDB({url, token, logger})
Use case:
handle correctly failures / stop filling my logs.
The text was updated successfully, but these errors were encountered:
rafipiccolo
changed the title
disable warns on failure
disable warns on failure / custom logger
Nov 9, 2021
Proposal:
I would like to disable warnings of write failure or at least provide a logger function to the package so i would be able to handle the warnings correctly.
Current behavior:
currently it fills my logs with big stacks where a custom logger function would be so much useful
Desired behavior:
For exemple
Use case:
handle correctly failures / stop filling my logs.
The text was updated successfully, but these errors were encountered: