HuddleEng / PhantomFlow

Describe and visualise user flows through tests with PhantomJS
MIT License
682 stars 60 forks source link

Removing lines with empty logs and redundant logPrefix lines #48

Closed jonathanbharding closed 8 years ago

jonathanbharding commented 8 years ago

Logging post 0.5.12 added some helpful items such as the addition of the timelapse and file name. However, it also seemed to add duplicate lines of logging when running phantom flow mode with the debug mode turned on. 97a15efc-12df-11e6-84d3-9b88203d5639

Now this screenshot is without the fix that Emily Skitek submitted for the resource errors in debug mode

With that fix in place the logging is still extra verbose, it just doesn't color everything red anymore.

This modification to the logs that I made will also group the casper related errors underneath the failure so it is more easily readable caspererror

The modification also removes blank lines of logs to reduce wasted space.

jamescryer commented 8 years ago

Thanks