replaced debug message by syslog