feat: Add debug logging for LNBits API and configuration
- Introduce console logging for LNBits API requests, providing visibility into endpoint calls and full URLs. - Add debug logging for configuration loading, displaying key configuration values while masking sensitive information. - Enhance overall debugging capabilities to facilitate easier troubleshooting and monitoring of API interactions.
This commit is contained in:
parent
7d7bee8e77
commit
59e0496ad9
3 changed files with 21 additions and 5 deletions
|
|
@ -77,6 +77,13 @@ export const config: AppConfig = {
|
|||
}
|
||||
} as const
|
||||
|
||||
// Debug logging
|
||||
console.log('🔧 Config loaded:', {
|
||||
VITE_LNBITS_BASE_URL: import.meta.env.VITE_LNBITS_BASE_URL,
|
||||
apiBaseUrl: config.api.baseUrl,
|
||||
apiKey: config.api.key ? '***' : 'not set'
|
||||
})
|
||||
|
||||
// Utility functions for common config operations
|
||||
export const configUtils = {
|
||||
isAdminPubkey: (pubkey: string): boolean => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue