Skip to content

Commit 884daa9

Browse files
committed
also add the host to the error logging
1 parent 88c0b17 commit 884daa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/compass/src/app/utils/telemetry.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@ async function getPublicCloudInfo(host: string): Promise<{
4040
public_cloud_name,
4141
};
4242
} catch (err) {
43-
debug(`getCloudInfo failed: ${(err as Error).message}`);
43+
debug(`getCloudInfo failed for "${host}": ${(err as Error).message}`);
4444

4545
log.error(
4646
mongoLogId(1_001_000_339),
4747
'getPublicCloudInfo',
48-
'Error fetching cloud info',
49-
(err as Error).message
48+
(err as Error).message,
49+
{ host }
5050
);
5151
return {};
5252
}

0 commit comments

Comments
 (0)