Skip to content

Commit

Permalink
feat: add symbols support (1.0.4)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Rodionov committed Aug 22, 2015
1 parent f609718 commit e6ca40b
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
3 changes: 2 additions & 1 deletion build/createLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ function createLogger() {
var returnValue = next(action);
var nextState = getState();
var time = new Date();
var message = 'action ' + action.type + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();
var actionType = String(action.type);
var message = 'action ' + actionType + ' @ ' + time.getHours() + ':' + time.getMinutes() + ':' + time.getSeconds();

if (collapsed) {
try {
Expand Down
14 changes: 7 additions & 7 deletions example/dist/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "redux-logger",
"version": "1.0.3",
"version": "1.0.4",
"description": "Logger for redux",
"main": "build/index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/createLogger.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function createLogger(options = {}) {
const returnValue = next(action);
const nextState = getState();
const time = new Date();
const message = `action ${action.type} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;
const actionType = String(action.type);
const message = `action ${actionType} @ ${time.getHours()}:${time.getMinutes()}:${time.getSeconds()}`;

if (collapsed) {
try {
Expand Down

0 comments on commit e6ca40b

Please sign in to comment.