Skip to content

Commit a5ca5a4

Browse files
author
Eugene Rodionov
committed
Merge pull request #14 from plainview/master
feat: add support for Symbol action types
2 parents 5b22219 + 6a69923 commit a5ca5a4

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

build/createLogger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ function createLogger() {
4141
var returnValue = next(action);
4242
var nextState = getState();
4343
var time = new Date();
44-
var message = 'action ' + action.type + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
44+
var actionType = String(action.type);
45+
var message = 'action ' + actionType + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
4546

4647
if (collapsed) {
4748
try {

src/createLogger.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ function createLogger(options = {}) {
2727
const returnValue = next(action);
2828
const nextState = getState();
2929
const time = new Date();
30-
const message = `action ${action.type} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;
30+
const actionType = String(action.type);
31+
const message = `action ${actionType} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;
3132

3233
if (collapsed) {
3334
try {

0 commit comments

Comments
 (0)