Skip to content

Commit 65bf460

Browse files
Update lib/logger.js
Co-authored-by: Marco Ippolito <marcoippolito54@gmail.com>
1 parent bda6d67 commit 65bf460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ class JSONConsumer extends LogConsumer {
166166

167167
// Add consumer fields
168168
const consumerFields = this.#fields;
169-
for (const key in consumerFields) {
169+
for (const key of ObjectKeys(consumerFields)) {
170170
const value = consumerFields[key];
171171
json += ',"' + key + '":';
172172
json += typeof value === 'string' ?

0 commit comments

Comments
 (0)