Improve debug log