Moving the context check to syslog method