[2026-05-22 02:13:49] production.INFO: Backend received startDate: 2026-05-01 00:00:00  
[2026-05-22 02:13:49] production.INFO: Backend received endDate: 2026-05-31 23:59:59  
[2026-05-22 21:15:01] production.INFO: Backend received startDate: 2026-05-01 00:00:00  
[2026-05-22 21:15:01] production.INFO: Backend received endDate: 2026-05-31 23:59:59  
[2026-05-22 21:16:16] production.INFO: Backend received startDate: 2026-05-01 00:00:00  
[2026-05-22 21:16:16] production.INFO: Backend received endDate: 2026-05-31 23:59:59  
[2026-05-22 21:16:46] production.INFO: Backend received startDate: 2026-05-01 00:00:00  
[2026-05-22 21:16:46] production.INFO: Backend received endDate: 2026-05-31 23:59:59  
[2026-05-22 22:49:05] production.INFO: FCM notification sent successfully {"fcm_token":"fvEt12TsSOaePdeXCo5d...","title":"🍽️ New Order Received!"} 
[2026-05-22 22:49:05] production.INFO: FCM notification sent successfully {"fcm_token":"cD5arz8JTu-zxc16VxHZ...","title":"🍽️ New Order Received!"} 
[2026-05-22 22:49:06] production.WARNING: FCM notification failed {"fcm_token":"e6hhsCKUR1CTQKN6O5cr...","error":"Requested entity was not found."} 
[2026-05-22 22:57:36] production.INFO: Version check requested {"app":"restaurant","platform":"android","currentVersion":"1.0.1","ip":"47.31.67.11"} 
[2026-05-22 22:57:36] production.INFO: 🔍 isUpdateAvailable check {"currentVersion":"1.0.1","dbVersion":"1.0.0","result":false} 
[2026-05-22 22:57:36] production.INFO: 🔍 isUpdateRequired check {"currentVersion":"1.0.1","dbVersion":"1.0.0","minimumVersion":"1.0.0","force_update":true,"updateAvailable":false,"version_compare_result":1} 
[2026-05-22 22:57:36] production.INFO: ✅ No update available - returning false  
[2026-05-22 22:57:36] production.INFO: 🎯 getUpdateType called {"currentVersion":"1.0.1","dbVersion":"1.0.0"} 
[2026-05-22 22:57:36] production.INFO: 🔍 isUpdateAvailable check {"currentVersion":"1.0.1","dbVersion":"1.0.0","result":false} 
[2026-05-22 22:57:36] production.INFO: ✅ No update available - returning none  
[2026-05-22 22:57:36] production.INFO: Version check response {"app":"restaurant","currentVersion":"1.0.1","latestVersion":"1.0.0","updateRequired":false,"updateAvailable":false} 
[2026-05-22 22:57:40] production.INFO: === OTP SEND REQUEST START === {"request_data":{"email":"kumardev.sha@gmail.com","timestamp":1779470860275},"headers":{"accept":["application/json, text/plain, */*"],"accept-encoding":["gzip, deflate, br, zstd"],"accept-language":["en-GB,en-US;q=0.9,en;q=0.8"],"authorization":[""],"content-type":["application/json"],"content-length":["60"],"host":["api.chahathotel.com"],"referer":["https://localhost/"],"user-agent":["Mozilla/5.0 (Linux; Android 15; CPH2423 Build/AP3A.240617.008; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/148.0.7778.120 Mobile Safari/537.36"],"sec-ch-ua-platform":["\"Android\""],"sec-ch-ua":["\"Chromium\";v=\"148\", \"Android WebView\";v=\"148\", \"Not/A)Brand\";v=\"99\""],"sec-ch-ua-mobile":["?1"],"origin":["https://localhost"],"x-requested-with":["com.bhukkha.partner"],"sec-fetch-site":["cross-site"],"sec-fetch-mode":["cors"],"sec-fetch-dest":["empty"],"priority":["u=1, i"]},"timestamp":"2026-05-22 22:57:40"} 
[2026-05-22 22:57:40] production.INFO: OTP Send - Step 1: Validation passed {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11"} 
[2026-05-22 22:57:40] production.INFO: OTP Send - Step 2: Rate limiting passed {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11"} 
[2026-05-22 22:57:40] production.INFO: OTP Send - Step 3: User lookup completed {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11","user_found":true,"user_id":2,"user_role":"admin","restaurant_id":"1"} 
[2026-05-22 22:57:40] production.INFO: OTP Send - Step 4: OTP generated successfully {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11","user_found":true,"user_id":2,"user_role":"admin","restaurant_id":"1","otp_id":135,"otp_expires_at":"2026-05-22 23:07:40"} 
[2026-05-22 22:57:40] production.INFO: OTP Send - Step 5: Starting email send process {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11","user_found":true,"user_id":2,"user_role":"admin","restaurant_id":"1","otp_id":135,"otp_expires_at":"2026-05-22 23:07:40"} 
[2026-05-22 22:57:40] production.INFO: === PRE-EMAIL SAFETY CHECKS START === {"email":"kumardev.sha@gmail.com","otp_value":"559662","user_name":"Dev kumar"} 
[2026-05-22 22:57:40] production.INFO: Mail config accessed successfully {"default_mailer":"smtp","mailers_count":9} 
[2026-05-22 22:57:40] production.INFO: === PRE-EMAIL SAFETY CHECKS PASSED ===  
[2026-05-22 22:57:40] production.INFO: About to call sendOtpEmail method {"email":"kumardev.sha@gmail.com","otp_code":"559662","user_name":"Dev kumar"} 
[2026-05-22 22:57:40] production.INFO: === EMAIL SEND PROCESS START === {"email":"kumardev.sha@gmail.com","user_name":"Dev kumar","timestamp":"2026-05-22 22:57:40"} 
[2026-05-22 22:57:40] production.INFO: Mail configuration loaded {"from_address":"info@chahathotel.com","from_name":"Chahat Hotel","mailer":"smtp","smtp_host":"mail.chahathotel.com","smtp_port":"465","smtp_username":"info@chahathotel.com","smtp_encryption":"ssl","env_from_address":"info@chahathotel.com","env_from_name":"Chahat Hotel","env_mail_mailer":"smtp","app_debug":false,"app_env":"production"} 
[2026-05-22 22:57:40] production.INFO: CompanySettings loaded successfully {"has_company_name":true,"company_name":"Bhukkha"} 
[2026-05-22 22:57:40] production.INFO: RestaurantOtpMailSafe constructed successfully {"user_email":"kumardev.sha@gmail.com","user_name":"Dev kumar","company_name":"Bhukkha RMS"} 
[2026-05-22 22:57:41] production.INFO: === EMAIL SEND SUCCESS (RestaurantOtpMailSafe) === {"email":"kumardev.sha@gmail.com","user_name":"Dev kumar","timestamp":"2026-05-22 22:57:40"} 
[2026-05-22 22:57:41] production.INFO: sendOtpEmail method completed successfully  
[2026-05-22 22:57:41] production.INFO: OTP Send - Step 6: Email sent successfully {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11","user_found":true,"user_id":2,"user_role":"admin","restaurant_id":"1","otp_id":135,"otp_expires_at":"2026-05-22 23:07:40"} 
[2026-05-22 22:57:41] production.INFO: === OTP SEND REQUEST SUCCESS === {"email":"kumardev.sha@gmail.com","ip_address":"47.31.67.11","user_found":true,"user_id":2,"user_role":"admin","restaurant_id":"1","otp_id":135,"otp_expires_at":"2026-05-22 23:07:40"} 
