guardian/scribe — pull request #33 by mattandrews (2014-02-04 12:54:48+00:00)
Title: Fix console logging for undo manager

This makes the undo manager only log output to console when `?debug` is in the URL.

This is for a few reasons, namely:

- it gets annoying quickly when the entire console is taken up by a large text output
- when typing in Scribe with the devtools console open, there's a noticeable flicker/lag when typing as the console is written to (switching to another devtools tab removes this effect)

I think it's a nice idea in general to have a configurable "dev mode" override for logging important stuff, and one which isn't on by default. We could use this approach in Composer, too (currently Composer logs the asset mapping on load, which is probably only needed during debugging) cc @theefer