In failed cases the debug printing was going out of bounds
Revert "Merge pull request #508 from Juniper/rajreddy_ut2"

This reverts commit 5878780dddbb69162dbda1b36504f517c3cbedff, reversing
changes made to 0b666932fbad23d3ecd02ca5499a862431d2a18c.
Merge pull request #521 from Juniper/rajreddy_readd_syslog_fix

Rajreddy readd syslog fix