Fixed transfer_log purge bug
Diagnostic output
More diagnostics