Skip to content

Commit

Permalink
logging: fix logging timestamp check
Browse files Browse the repository at this point in the history
_ref: #671
  • Loading branch information
sogehige committed Jan 8, 2018
1 parent 716627f commit 542c040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/logging.js
Expand Up @@ -152,7 +152,7 @@ Logger.prototype.doFilter = function (self, content) {
var line = sContent[i]

var time = line.match(/(\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3})/g)
var curTime = _.now()
var curTime = _.now() / 1000

if (_.isNull(time)) continue
time = moment(time[0].replace(/[-:]/g, '')).format('X')
Expand Down

0 comments on commit 542c040

Please sign in to comment.