Added better debugging messages to log parsing script