call debug log only when needed, not on all server requests
Merge pull request #9 from RonanDrouglazet/master

call debug log only when needed, not on all server requests