Skip to content

Commit 60faa14

Browse files
committed
feat(metrics): log directly to stdout (#1786)
* chore(commons): move isDevMode to commons * chore(logger): move isDev config out of logger to commons * feat(metrics): use own console object by default * tests(layers): fix unit tests
1 parent 3ff2561 commit 60faa14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/metrics/tests/unit/middleware/middy.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ describe('Middy middleware', () => {
169169
serviceName: 'orders',
170170
});
171171
const consoleSpy = jest.spyOn(metrics['console'], 'log');
172-
const handler = middy(() => {
172+
const handler = middy(async (): Promise<void> => {
173173
metrics.addMetric('successfulBooking', MetricUnit.Count, 2);
174174
metrics.addMetric('successfulBooking', MetricUnit.Count, 1);
175175
}).use(logMetrics(metrics));

0 commit comments

Comments
 (0)