Skip to content

Commit 9b4773c

Browse files
committedApr 23, 2020
fix: logs without additional
1 parent d82ee3e commit 9b4773c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/logger.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const consola = require('consola')
55
function warn(message, options = null) {
66
consola.warn({
77
message: `[sitemap-module] ${message}`,
8-
additional: JSON.stringify(options, null, 2),
8+
additional: options ? JSON.stringify(options, null, 2) : null,
99
})
1010
}
1111

0 commit comments

Comments
 (0)
Please sign in to comment.