Skip to content

Commit 6c0dae0

Browse files
committed
Fix bug in the logging layer of GCPSConsumer
1 parent 5d56e89 commit 6c0dae0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "strontium",
3-
"version": "2.4.15",
3+
"version": "2.4.16",
44
"description": "Strontium is a TypeScript toolkit for High Performance API servers built for Production not Projects.",
55
"main": "lib/src/index.js",
66
"types": "lib/src/index.d.ts",

src/queue/drivers/gcps/GCPSConsumer.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ export class GCPSConsumer implements Process {
4141
// Start the process
4242
this.isEnabled = true
4343

44+
if (container.isBound(Logger)) {
45+
this.logger = container.get(Logger)
46+
}
47+
4448
// Fetch the subscription configuration
4549
let subscription = await this.client.getSubscriptionData(
4650
this.subscriptionName
@@ -130,9 +134,6 @@ export class GCPSConsumer implements Process {
130134
})
131135

132136
requestContainer.parent = applicationContainer
133-
if (requestContainer.isBound(Logger)) {
134-
this.logger = requestContainer.get(Logger)
135-
}
136137

137138
// Spawn a handler for the Task type
138139
let handlerType = this.taskHandlers[task.eventName]

0 commit comments

Comments
 (0)