From f0045d31962f738b14d294c76a7418c117870112 Mon Sep 17 00:00:00 2001 From: Oleh Astappiev Date: Fri, 22 Sep 2023 17:29:18 +0200 Subject: [PATCH] feat: add sentry log recording --- interweb-server/pom.xml | 4 ++++ interweb-server/src/main/resources/application.properties | 7 ++++++- pom.xml | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/interweb-server/pom.xml b/interweb-server/pom.xml index a01a944f..a9b79572 100644 --- a/interweb-server/pom.xml +++ b/interweb-server/pom.xml @@ -89,6 +89,10 @@ io.quarkus quarkus-hibernate-reactive-panache + + io.quarkiverse.loggingsentry + quarkus-logging-sentry + io.quarkus diff --git a/interweb-server/src/main/resources/application.properties b/interweb-server/src/main/resources/application.properties index 6f059ebd..7db60dcf 100644 --- a/interweb-server/src/main/resources/application.properties +++ b/interweb-server/src/main/resources/application.properties @@ -12,7 +12,7 @@ quarkus.datasource.reactive.url=mariadb://localhost:3306/interweb quarkus.datasource.reactive.max-size=20 quarkus.hibernate-orm.database.generation=update -quarkus.hibernate-orm.log.sql=true +%dev.quarkus.hibernate-orm.log.sql=true quarkus.health.openapi.included=false quarkus.smallrye-jwt.enabled=true @@ -28,6 +28,11 @@ smallrye.jwt.new-token.lifespan=7200 mp.jwt.verify.publickey=${jwt.public.key} mp.jwt.verify.issuer=${jwt.issuer} +# Sentry +quarkus.log.sentry=false +quarkus.log.sentry.dsn= +quarkus.log.sentry.in-app-packages=de.l3s.interweb + # OpenAPI, Swagger quarkus.swagger-ui.always-include=true quarkus.swagger-ui.path=/api diff --git a/pom.xml b/pom.xml index be3b5eae..15cf6f0c 100644 --- a/pom.xml +++ b/pom.xml @@ -71,6 +71,12 @@ interweb-core 4.0.0-SNAPSHOT + + + io.quarkiverse.loggingsentry + quarkus-logging-sentry + 2.0.3 +