Skip to content

Commit f609718

Browse files
author
Eugene Rodionov
committed
Merge branch 'master' of github.com:fcomb/redux-logger into HEAD
2 parents 4c9188d + 823307f commit f609718

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

build/createLogger.js

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

4746
if (collapsed) {
4847
try {

src/createLogger.js

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

3332
if (collapsed) {
3433
try {

0 commit comments

Comments
 (0)