mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
[APM] fix logger on telemetry (#204388)
## Summary Closes https://github.com/elastic/kibana/issues/199249 This PR fixes the logger calls on APM telemetry
This commit is contained in:
parent
67d7547150
commit
5077e6d63d
1 changed files with 2 additions and 2 deletions
|
@ -46,8 +46,8 @@ export function collectDataTelemetry({
|
|||
} catch (err) {
|
||||
// catch error and log as debug in production env and warn in dev env
|
||||
const logLevel = isProd ? logger.debug : logger.warn;
|
||||
logLevel(`Failed executing the APM telemetry task: "${task.name}"`);
|
||||
logLevel(err);
|
||||
logLevel.call(logger, `Failed executing the APM telemetry task: "${task.name}"`);
|
||||
logLevel.call(logger, err);
|
||||
return data;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue