Skip to content

Commit

Permalink
DOKY-204 Update deployment for email-service (#134)
Browse files Browse the repository at this point in the history
Integrate versioning, logging, and deployment updates

Added unified versioning and build date across projects. Introduced JSON logging for production in `email-service` with `Logback`. Enhanced Docker configurations for both 'app-server' and 'email-service' with dynamic environment variables and deploy settings.
  • Loading branch information
hanna-eismant authored Jan 8, 2025
1 parent 36837f8 commit 536852a
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class KafkaEmailNotificationConsumerService(
)
fun listen(@Payload message: SendEmailMessage) {
try {
LOG.debug { "Received message: $message" }
LOG.debug { "Received message: [$message]" }
message.userId.let {
when (message.emailType) {
EmailType.REGISTRATION -> sendRegistrationEmail(message.userId!!)
Expand All @@ -33,8 +33,7 @@ class KafkaEmailNotificationConsumerService(
}
}
} catch (e: Exception) {
LOG.error(e) { "Error processing message: $message" }
throw e
LOG.error(e) { "Error processing message: [$message]" }
}
}

Expand Down

0 comments on commit 536852a

Please sign in to comment.