Merge pull request #39 from guillaumewuip/feature-customTimeLocation

Fix new custom location feature
This commit is contained in:
Guillaume Wuip 2015-02-02 19:20:51 +01:00
commit 8f878d0cd8

View file

@ -585,7 +585,7 @@
//use this._location if it's an object (custom location)
//or build the location
var location = (this._location || this.opt.alwaysLocation) === true ? getLocation() : this._location;
var location = typeof this._location === 'object' ? this._location : getLocation();
var time = (typeof this._time !== 'boolean') ? this._time : Date.now();
@ -609,6 +609,8 @@
opt : opt
};
console.log(log);
// Build the context string
var context = this.buildContext(log, log.show);