Skip to content

Commit

Permalink
logging await added
Browse files Browse the repository at this point in the history
  • Loading branch information
ShashaankKrishnatray committed Jul 1, 2024
1 parent 3c58299 commit f1ebec5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rule-engine/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@freshworks-jaya/rule-engine",
"version": "0.18.0",
"version": "0.18.1",
"description": "Provides methods to process rules in product events in marketplace app",
"repository": "[email protected]:freshdesk/jaya-lib.git",
"main": "lib/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/rule-engine/src/Utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export class Utils {
const { sub_entity: actorSubentity = null, type: actorType } = data.actor;

const googleCloudLogging = new GoogleCloudLogging(integrations.googleCloudLoggingConfig);

googleCloudLogging.log(
await googleCloudLogging.log(
{
actor_subentity: actorSubentity,
actor_type: actorType,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ export default async (
apiName: triggerApi.name,
error: error as AnyJson,
}, LogSeverity.CRITICAL);
throw error;
throw error
}
};

Expand Down

0 comments on commit f1ebec5

Please sign in to comment.