[FIX] Added more debug messages and strip line before logging