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
|
|
@ -75,6 +75,8 @@ class LnbitsAPI {
|
|||
options: RequestInit = {}
|
||||
): Promise<T> {
|
||||
const url = getApiUrl(endpoint)
|
||||
console.log('🔧 LNBits API request:', { endpoint, fullUrl: url })
|
||||
|
||||
const headers: HeadersInit = {
|
||||
'Content-Type': 'application/json',
|
||||
...options.headers,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue