Fix copy_logs double-parsing the private key