added debuglog snippet to log an error which i do all the time