added logging to upload server.