Skip to content

Commit dfc1d68

Browse files
committed
more logging during withSentry
1 parent 1af4640 commit dfc1d68

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

packages/nextjs/src/utils/handlers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ type WrappedNextApiHandler = NextApiHandler;
1414
export const withSentry = (handler: NextApiHandler): WrappedNextApiHandler => {
1515
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
1616
return async (req, res) => {
17+
logger.log('process.env in withSentry:', process.env);
1718
try {
1819
const currentScope = getCurrentHub().getScope();
1920

packages/node/src/sdk.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getCurrentHub, initAndBind, Integrations as CoreIntegrations } from '@sentry/core';
22
import { getMainCarrier, setHubOnCarrier } from '@sentry/hub';
33
import { SessionStatus } from '@sentry/types';
4-
import { getGlobalObject } from '@sentry/utils';
4+
import { getGlobalObject, logger } from '@sentry/utils';
55
import * as domain from 'domain';
66

77
import { NodeClient } from './client';
@@ -147,6 +147,7 @@ export function lastEventId(): string | undefined {
147147
*/
148148
export async function flush(timeout?: number): Promise<boolean> {
149149
const client = getCurrentHub().getClient<NodeClient>();
150+
logger.log('In node SDK, sdk.flush(). Client defined:', !!client);
150151
if (client) {
151152
return client.flush(timeout);
152153
}

0 commit comments

Comments
 (0)