Disable debug logging unless "debug" config param evaluates to true

Closes #137