Improved logging for scanning