Improved logging of details