fix undefined method for nil:NilClass
debug local logging for L3 agent
debug syslog and local logging for L3 agent