Skip to content

Commit d29f40a

Browse files
committed
fix(payments): update nimbus manager logs
Because: - Nimbus Manager logs should not log payload as log type. This commit: - Adds an appropriate log type and move the payload to the appropriate spot. Closes #PAY-3463
1 parent 8f6bb44 commit d29f40a

1 file changed

Lines changed: 7 additions & 9 deletions

File tree

libs/payments/experiments/src/lib/nimbus.manager.ts

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,12 @@ export class NimbusManager {
3131
}
3232

3333
// Temporarily log payload for debugging purposes
34-
this.log.log(
35-
JSON.stringify({
36-
msg: 'NimbusPayload',
37-
clientId: nimbusUserId,
38-
context: { language: language || null, region: region || null },
39-
preview,
40-
})
41-
);
34+
this.log.log('NimbusManager.fetchExperiments.payload', {
35+
msg: 'NimbusPayload',
36+
clientId: nimbusUserId,
37+
context: { language: language || null, region: region || null },
38+
preview,
39+
});
4240

4341
const results =
4442
await this.nimbusClient.fetchExperiments<SubPlatNimbusResult>({
@@ -48,7 +46,7 @@ export class NimbusManager {
4846
});
4947

5048
// Temporarily log results for debugging purposes
51-
this.log.log(JSON.stringify(results));
49+
this.log.log('NimbusManager.fetchExperiments.result', results);
5250

5351
return results;
5452
}

0 commit comments

Comments
 (0)