Added loggers and changed the condition in upload file cloud service