Skip to content

Commit f2c44a6

Browse files
authored
chore: better log watchdog entry (#1871)
this would log the entire message including the session id, app version and os type which will help debugging.
1 parent e7a0d50 commit f2c44a6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/telemetry/watchdog/ClearcutSender.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ export class ClearcutSender {
7070
this.#sessionCreated = Date.now();
7171
}
7272

73-
logger('Enqueing telemetry event', JSON.stringify(event, null, 2));
74-
75-
this.#addToBuffer({
73+
const eventToSend = {
7674
...event,
7775
session_id: this.#sessionId,
7876
app_version: this.#appVersion,
7977
os_type: this.#osType,
80-
});
78+
};
79+
logger('Enqueing telemetry event', JSON.stringify(eventToSend, null, 2));
80+
this.#addToBuffer(eventToSend);
8181

8282
if (!this.#timerStarted) {
8383
this.#timerStarted = true;

0 commit comments

Comments
 (0)