snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

Respect verbose server setting in snaplets #81

Closed MichaelXavier closed 11 years ago

MichaelXavier commented 11 years ago

Hi,

I talked with you guys a bit about how when the server is configured with setVerbose False, the snaplet subsystem still prints messages. I think we agreed the right behavior would be to not print snaplet initialization messages if verbosity is off. I'm happy to submit a pull request but was wondering if you guys could provide a bit of direction as to where I should make the change. I see in snaplets that it uses printInfo, which seems to append messages to an IORef, but I haven't yet been able to track down how that data winds up on my console.

mightybyte commented 11 years ago

Look in serveSnaplet in Initializer.hs