File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ type WrappedNextApiHandler = NextApiHandler;
14
14
export const withSentry = ( handler : NextApiHandler ) : WrappedNextApiHandler => {
15
15
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
16
16
return async ( req , res ) => {
17
+ logger . log ( 'process.env in withSentry:' , process . env ) ;
17
18
try {
18
19
const currentScope = getCurrentHub ( ) . getScope ( ) ;
19
20
Original file line number Diff line number Diff line change 1
1
import { getCurrentHub , initAndBind , Integrations as CoreIntegrations } from '@sentry/core' ;
2
2
import { getMainCarrier , setHubOnCarrier } from '@sentry/hub' ;
3
3
import { SessionStatus } from '@sentry/types' ;
4
- import { getGlobalObject } from '@sentry/utils' ;
4
+ import { getGlobalObject , logger } from '@sentry/utils' ;
5
5
import * as domain from 'domain' ;
6
6
7
7
import { NodeClient } from './client' ;
@@ -147,6 +147,7 @@ export function lastEventId(): string | undefined {
147
147
*/
148
148
export async function flush ( timeout ?: number ) : Promise < boolean > {
149
149
const client = getCurrentHub ( ) . getClient < NodeClient > ( ) ;
150
+ logger . log ( 'In node SDK, sdk.flush(). Client defined:' , ! ! client ) ;
150
151
if ( client ) {
151
152
return client . flush ( timeout ) ;
152
153
}
You can’t perform that action at this time.
0 commit comments