Skip to content

Commit 539dab5

Browse files
arbesfeldimevro
authored andcommitted
feat: add withTrace option (#205)
1 parent 38d48a0 commit 539dab5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core.js

+6
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,12 @@ function printBuffer(buffer, options) {
125125
} else logger[nextStateLevel]('next state', nextState);
126126
}
127127

128+
if (logger.withTrace) {
129+
logger.groupCollapsed(`TRACE`);
130+
logger.trace();
131+
logger.groupEnd();
132+
}
133+
128134
if (diff) {
129135
diffLogger(prevState, nextState, logger, isCollapsed);
130136
}

0 commit comments

Comments
 (0)