debug: add detailed logging for Telegram inquiry notifications
TaxBaik CI/CD / build-and-deploy (push) Successful in 1m27s

- Add debug logging to Contact page form handler
- Add detailed logging to TelegramInquiryNotificationService
- Track inquiry submission and notification flow

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-07-04 02:30:10 +09:00
parent 837ae530c7
commit e7436bb0e7
2 changed files with 20 additions and 3 deletions
@@ -22,10 +22,16 @@ public class TelegramInquiryNotificationService : IInquiryNotificationService
public async Task NotifyCreatedAsync(int inquiryId, string name, string phone, string serviceType, string message, string? ipAddress, DateTime createdAtUtc, CancellationToken ct = default)
{
_logger.LogInformation("[Telegram] NotifyCreatedAsync 시작: InquiryId={Id}, Name={Name}", inquiryId, name);
var botToken = _configuration["Telegram:BotToken"];
var chatId = _configuration["Telegram:InquiryChatId"];
if (string.IsNullOrWhiteSpace(chatId))
chatId = _configuration["Telegram:ChatId"];
_logger.LogInformation("[Telegram] 설정 확인: BotToken={Token}, ChatId={ChatId}",
string.IsNullOrWhiteSpace(botToken) ? "없음" : "있음", chatId);
if (string.IsNullOrWhiteSpace(botToken) || string.IsNullOrWhiteSpace(chatId))
{
_logger.LogWarning("텔레그램 새 문의 알림 설정이 누락되었습니다. Telegram:BotToken 또는 Telegram:InquiryChatId/ChatId를 확인하세요.");