diff --git a/SimpleServer/src/Services/Crawler/CrawlData/Helper/GCSHelper.cs b/SimpleServer/src/Services/Crawler/CrawlData/Helper/GCSHelper.cs index b6f1ef7..e97a987 100644 --- a/SimpleServer/src/Services/Crawler/CrawlData/Helper/GCSHelper.cs +++ b/SimpleServer/src/Services/Crawler/CrawlData/Helper/GCSHelper.cs @@ -55,9 +55,9 @@ public static string MakePublic(string objectName = "your-object-name") var storageObject = storage.GetObject(Consts.BUCKET_NAME, objectName); storageObject.Acl ??= new List(); storage.UpdateObject(storageObject, new UpdateObjectOptions { PredefinedAcl = PredefinedObjectAcl.PublicRead }); - Console.WriteLine(objectName + " is now public and can be fetched from " + storageObject.SelfLink); // get public url var publicUrl = $"https://storage.googleapis.com/{Consts.BUCKET_NAME}/{objectName}"; + Console.WriteLine(objectName + " is now public and can be fetched from " + publicUrl); return publicUrl; } diff --git a/SimpleServer/src/Services/Crawler/CrawlData/Service/CrawlerService.cs b/SimpleServer/src/Services/Crawler/CrawlData/Service/CrawlerService.cs index 22fd32f..1c7e1a5 100644 --- a/SimpleServer/src/Services/Crawler/CrawlData/Service/CrawlerService.cs +++ b/SimpleServer/src/Services/Crawler/CrawlData/Service/CrawlerService.cs @@ -123,6 +123,7 @@ private async Task PublishMoviesAsync(List moviesToPushToGCS) { var moviePublishedEvent = _mapper.Map(movie); await _publishEndpoint.Publish(moviePublishedEvent); + Log.Information($"Movie {movie.MovieName} published to MassTransit-RabbitMQ successfully!"); } } catch (System.Exception ex)