aboutsummaryrefslogtreecommitdiff
path: root/src/Web/DevHive.Web/Startup.cs
diff options
context:
space:
mode:
authortranstrike <transtrike@gmail.com>2021-04-02 23:17:39 +0300
committertranstrike <transtrike@gmail.com>2021-04-02 23:17:39 +0300
commit0c83049a3a0b417da7dcd548b1cd0992defb366f (patch)
treeb69ef0d111b7c22316a2a6603d66d85e4a568956 /src/Web/DevHive.Web/Startup.cs
parentd672c515eb760a5351affeb5600640569ed5ee16 (diff)
parent2448c4d31188aed26605c5e3c282bacc3bd71ae5 (diff)
downloadDevHive-0c83049a3a0b417da7dcd548b1cd0992defb366f.tar
DevHive-0c83049a3a0b417da7dcd548b1cd0992defb366f.tar.gz
DevHive-0c83049a3a0b417da7dcd548b1cd0992defb366f.zip
dev -> feature/profile_picture_implementation(02.03.2021)
Diffstat (limited to 'src/Web/DevHive.Web/Startup.cs')
-rw-r--r--src/Web/DevHive.Web/Startup.cs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Web/DevHive.Web/Startup.cs b/src/Web/DevHive.Web/Startup.cs
index 002c718..05a75d9 100644
--- a/src/Web/DevHive.Web/Startup.cs
+++ b/src/Web/DevHive.Web/Startup.cs
@@ -5,6 +5,7 @@ using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using DevHive.Web.Configurations.Extensions;
using Newtonsoft.Json;
+using Serilog;
namespace DevHive.Web
{
@@ -46,7 +47,8 @@ namespace DevHive.Web
if (env.IsDevelopment())
{
- app.UseDeveloperExceptionPage();
+ app.UseExceptionHandlerMiddlewareConfiguration();
+ // app.UseDeveloperExceptionPage();
}
else
{
@@ -58,6 +60,8 @@ namespace DevHive.Web
app.UseDatabaseConfiguration();
app.UseAutoMapperConfiguration();
+ app.UseSerilogRequestLogging();
+
app.UseEndpoints(endpoints =>
{
endpoints.MapControllerRoute(