Proper logging in qc_amount_calculation script