updated check for syslog flag