Several log related fixes for copy status to sample script