[FIX] Fix Logger for debug mode