From 89fcc401a708b9e984dec56aa49031312bd4a7f3 Mon Sep 17 00:00:00 2001 From: Philippe Pittoli Date: Mon, 25 Nov 2024 10:09:21 +0100 Subject: [PATCH] Print some debug info, crash in case there is no secret file. --- src/service.cr | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/service.cr b/src/service.cr index 9e27909..c27d1c2 100644 --- a/src/service.cr +++ b/src/service.cr @@ -164,6 +164,12 @@ class AuthD::Service < IPC Baguette::Log.info "(mailer) Email activation template: #{@configuration.activation_template}" Baguette::Log.info "(mailer) Email recovery template: #{@configuration.recovery_template}" + if skf = @configuration.secret_key_file + Baguette::Log.info "secret key file is: #{skf}" + else + Baguette::Log.error "no secret key file" + exit 1 + end self.loop do |event| case event.type