豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit 080bcf6

Browse files
chore: add additional logs to clearcut sender (#1040)
Co-authored-by: Nikolay Vitkov <34244704+Lightning00Blade@users.noreply.github.com>
1 parent 9c966b4 commit 080bcf6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/telemetry/watchdog/ClearcutSender.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export class ClearcutSender {
168168
}
169169

170170
#scheduleFlush(delayMs: number): void {
171+
logger(`Scheduling flush in ${delayMs}`);
171172
if (this.#flushTimer) {
172173
clearTimeout(this.#flushTimer);
173174
}
@@ -183,6 +184,7 @@ export class ClearcutSender {
183184
isPermanentError?: boolean;
184185
nextRequestWaitMs?: number;
185186
}> {
187+
logger(`Sending batch of ${events.length}`);
186188
const requestBody: LogRequest = {
187189
log_source: LOG_SOURCE,
188190
request_time_ms: Date.now().toString(),

0 commit comments

Comments
 (0)