Skip to content

Commit f9061e4

Browse files
cprussinDonutEspresso
authored andcommitted
fix: support loggers that don't implement addSerializers (such as pino) (#128)
1 parent 3cefafa commit f9061e4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/logHelpers.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ function child(name) {
8181
* @returns {void}
8282
*/
8383
function addSerializers(log) {
84+
if (!log.addSerializers) {
85+
return;
86+
}
8487
log.addSerializers({
8588
conductorModel: function(model) {
8689
if (!model) {

0 commit comments

Comments
 (0)