Created dummy "Write to log", catching any error that will happen in case of an error from the server