Skip to content

Commit 04b7e0f

Browse files
committed
Cast shardid to string in cloud logging
1 parent 0a2eb58 commit 04b7e0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bot/Logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export class Logger {
104104
type: 'global',
105105
labels: {
106106
project_id: this.config.projectId,
107-
shard_id: bot.client.shard?.ids[0],
107+
shard_id: bot.client.shard?.ids[0]?.toString() ?? "unknown",
108108
}
109109
},
110110
severity

0 commit comments

Comments
 (0)