Improved debug log