Skip to content

Commit

Permalink
[APM] fix logger on telemetry (elastic#204388)
Browse files Browse the repository at this point in the history
## Summary

Closes elastic#199249

This PR fixes the logger calls on APM telemetry
  • Loading branch information
rmyz authored Dec 16, 2024
1 parent 67d7547 commit 5077e6d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
});
Expand Down

0 comments on commit 5077e6d

Please sign in to comment.