diff --git a/PERUSTARS/PERUSTARS/DataAnalytics/Application/Jobs/DataAnalyticsJob.cs b/PERUSTARS/PERUSTARS/DataAnalytics/Application/Jobs/DataAnalyticsJob.cs index 548f25b..5cf51aa 100644 --- a/PERUSTARS/PERUSTARS/DataAnalytics/Application/Jobs/DataAnalyticsJob.cs +++ b/PERUSTARS/PERUSTARS/DataAnalytics/Application/Jobs/DataAnalyticsJob.cs @@ -27,7 +27,7 @@ private async void ComputeRecommendationData(object state) { bool isSuccess = await _peruStarsMLServiceFeignClient.ComputeRecommendationSystem(); if (isSuccess) _logger.LogInformation("Remote call to perustars-ml-api was successfully executed"); - else _logger.LogInformation("Remote call to perustars-ml-api failed"); + else _logger.LogError("Remote call to perustars-ml-api failed"); } public Task StartAsync(CancellationToken cancellationToken) diff --git a/PERUSTARS/PERUSTARS/DataAnalytics/Infrastructure/FeignClients/PeruStarsMLServiceFeignClient.cs b/PERUSTARS/PERUSTARS/DataAnalytics/Infrastructure/FeignClients/PeruStarsMLServiceFeignClient.cs index 1f966cf..992de58 100644 --- a/PERUSTARS/PERUSTARS/DataAnalytics/Infrastructure/FeignClients/PeruStarsMLServiceFeignClient.cs +++ b/PERUSTARS/PERUSTARS/DataAnalytics/Infrastructure/FeignClients/PeruStarsMLServiceFeignClient.cs @@ -39,7 +39,7 @@ public async Task GetHobbyistRecommendedArtist(long hobbyistId) HttpResponseMessage response = await _httpClient.GetAsync(path); if (!response.IsSuccessStatusCode) { - _logger.LogInformation("Something went wrong when calling perustars-ml-api"); + _logger.LogError("Something went wrong when calling perustars-ml-api"); return new MLResponse { Data = null, statusCode = HttpStatusCode.InternalServerError }; } MLDto data = await response.Content.ReadFromJsonAsync(); diff --git a/PERUSTARS/PERUSTARS/DataAnalytics/Interface/REST/DataAnalyticsController.cs b/PERUSTARS/PERUSTARS/DataAnalytics/Interface/REST/DataAnalyticsController.cs index 56b59f4..efea9f2 100644 --- a/PERUSTARS/PERUSTARS/DataAnalytics/Interface/REST/DataAnalyticsController.cs +++ b/PERUSTARS/PERUSTARS/DataAnalytics/Interface/REST/DataAnalyticsController.cs @@ -24,7 +24,7 @@ public async Task GetFavouristArtistsFrom(long hobbyistId) { return StatusCode((int)HttpStatusCode.InternalServerError, "An error ocurred while trying to call perustars-ml-service"); } - return Ok(result); + return Ok(result.Data); } } } diff --git a/PERUSTARS/PERUSTARS/appsettings.json b/PERUSTARS/PERUSTARS/appsettings.json index e06ede1..e7c5a8c 100644 --- a/PERUSTARS/PERUSTARS/appsettings.json +++ b/PERUSTARS/PERUSTARS/appsettings.json @@ -12,9 +12,9 @@ "ConnectionStrings": { //"DefaultConnection1ssssss": "server=localhost;port=3306;database=perustars;uid=root;password=admin", - //"DefaultConnection": "server=perustars-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Miguel445" + "DefaultConnection": "server=perustars-main-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Admin123" //"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1", - "DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O" + //"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O" //"PostgreSQLConnection": "host=localhost;port=5432;username=postgres;password=12345;database=perustars" // "DefaultConnection": "server=localhost;port=3306;database=perustars;uid=root;password=root" }, diff --git a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll index cbe113e..8390e64 100644 Binary files a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll and b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.dll differ diff --git a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb index 2ae71a0..f494ec6 100644 Binary files a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb and b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/PERUSTARS.pdb differ diff --git a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json index e06ede1..e7c5a8c 100644 --- a/PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json +++ b/PERUSTARS/PERUSTARS/bin/Debug/net5.0/appsettings.json @@ -12,9 +12,9 @@ "ConnectionStrings": { //"DefaultConnection1ssssss": "server=localhost;port=3306;database=perustars;uid=root;password=admin", - //"DefaultConnection": "server=perustars-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Miguel445" + "DefaultConnection": "server=perustars-main-db.mysql.database.azure.com;port=3306;database=perustars;uid=perustarsAdmin;password=Admin123" //"DefaultConnection3": "Server=MYSQL5047.site4now.net;Database=db_a758df_perusta;Uid=a758df_perusta;Pwd=password1", - "DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O" + //"DefaultConnection": "Server=bufyroukqdunhwcivvpo-mysql.services.clever-cloud.com;Database=bufyroukqdunhwcivvpo;Uid=ubcldvvxbrtlhp2d;Pwd=FltJthiJHLXaKDmKT11O" //"PostgreSQLConnection": "host=localhost;port=5432;username=postgres;password=12345;database=perustars" // "DefaultConnection": "server=localhost;port=3306;database=perustars;uid=root;password=root" },