Skip to content

Commit 41f01bc

Browse files
committed
fix: Don
1 parent b2261b6 commit 41f01bc

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## 5.0.8
44

5+
- [core] fix: Don't disable client before flushing
56
- [utils] fix: Remove node types
67
- [hub] fix: Make sure all breadcrumbs have a timestamp
78
- [hub] fix: Merge event with scope breadcrumbs instead of only using event breadcrumbs

packages/core/src/baseclient.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
9494
this._processing = false;
9595
})
9696
.catch(reason => {
97-
logger.log(reason);
97+
logger.error(reason);
9898
this._processing = false;
9999
});
100100

@@ -121,7 +121,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
121121
this._processing = false;
122122
})
123123
.catch(reason => {
124-
logger.log(reason);
124+
logger.error(reason);
125125
this._processing = false;
126126
});
127127

@@ -142,7 +142,7 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
142142
this._processing = false;
143143
})
144144
.catch(reason => {
145-
logger.log(reason);
145+
logger.error(reason);
146146
this._processing = false;
147147
});
148148
return eventId;
@@ -180,8 +180,9 @@ export abstract class BaseClient<B extends Backend, O extends Options> implement
180180
* @inheritDoc
181181
*/
182182
public async close(timeout?: number): Promise<boolean> {
183+
const result = await this.flush(timeout);
183184
this.getOptions().enabled = false;
184-
return this.flush(timeout);
185+
return result;
185186
}
186187

187188
/**

0 commit comments

Comments
 (0)