Improving details written to log