fixed unused variable (snslog and #debug)