Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/basebackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export abstract class BaseBackend<O extends Options> implements Backend {
public sendEvent(event: Event): void {
void this._transport.sendEvent(event).then(null, reason => {
if (isDebugBuild()) {
logger.error(`Error while sending event:`, reason);
logger.error('Error while sending event:', reason);
}
});
}
Expand All @@ -111,7 +111,7 @@ export abstract class BaseBackend<O extends Options> implements Backend {

void this._transport.sendSession(session).then(null, reason => {
if (isDebugBuild()) {
logger.error(`Error while sending session:`, reason);
logger.error('Error while sending session:', reason);
}
});
}
Expand Down
2 changes: 1 addition & 1 deletion packages/hub/src/sessionflusher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class SessionFlusher implements SessionFlusherLike {
return;
}
void this._transport.sendSession(sessionAggregates).then(null, reason => {
logger.error(`Error while sending session:`, reason);
logger.error('Error while sending session:', reason);
});
}

Expand Down
2 changes: 1 addition & 1 deletion packages/nextjs/src/utils/withSentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,6 @@ async function finishSentryProcessing(res: AugmentedNextApiResponse): Promise<vo
await flush(2000);
logger.log('Done flushing events');
} catch (e) {
logger.log(`Error while flushing events:\n`, e);
logger.log('Error while flushing events:\n', e);
}
}