Skip to content

Commit 88c0b17

Browse files
committed
add debug too
1 parent 0d7df85 commit 88c0b17

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import ConnectionString from 'mongodb-connection-string-url';
66
import resolveMongodbSrv from 'resolve-mongodb-srv';
77
import type { KMSProviders, MongoClientOptions } from 'mongodb';
88
import { createLogger } from '@mongodb-js/compass-logging';
9-
const { log, mongoLogId } = createLogger('COMPASS-TELEMETRY');
9+
const { debug, log, mongoLogId } = createLogger('COMPASS-TELEMETRY');
1010

1111
type HostInformation = {
1212
is_localhost: boolean;
@@ -40,6 +40,8 @@ async function getPublicCloudInfo(host: string): Promise<{
4040
public_cloud_name,
4141
};
4242
} catch (err) {
43+
debug(`getCloudInfo failed: ${(err as Error).message}`);
44+
4345
log.error(
4446
mongoLogId(1_001_000_339),
4547
'getPublicCloudInfo',

0 commit comments

Comments
 (0)