Commit Graph
433 Commits
Author SHA1 Message Date
shroominicandGitHub 9bab7aee7d rm prints 2025-08-12 15:41:05 -03:00
Shroominic 6924f6c18a rm alembic logging 2025-08-12 15:31:17 -03:00
Shroominic 8360d2a6fd feat: add log investigation feature and modern UI to admin dashboard
- Add 'Investigate Logs' button with modal for request ID input
- Implement /admin/logs/{request_id} endpoint for log viewing
- Parse and display JSON log entries with formatting
- Search through last 7 days of log files
- Add modern minimal CSS design system
- Improve typography with system font stack
- Add card layouts, shadows, and rounded corners
- Implement smooth transitions and hover effects
- Add emoji icons for visual interest
- Rename 'User's API Keys' to 'Temporary Balances'
2025-08-12 15:30:02 -03:00
Shroominic de5c2bd502 feat: add comprehensive logging to proxy endpoints
- Log complete request flow from entry to completion
- Add detailed bearer token validation logging
- Track payment processing with balance changes
- Log streaming vs non-streaming response detection
- Add categorized error logging (connection, timeout, network)
- Use key hash for secure tracking without exposing full keys
- Log response type analysis for chat completions
- Track failed request payment reversals
2025-08-12 15:29:45 -03:00
Shroominic eeb458f8fe feat: enhance logging in payment processing modules
- Add comprehensive logging for cost calculations and pricing
- Log token validation with secure previews (first 20 chars)
- Add detailed logging for X-Cashu token processing flow
- Implement specific error categorization for CASHU errors
- Add logging for streaming response handling and usage extraction
- Log refund processing with retry attempts
- Track header modifications in upstream requests
- Include request IDs in error responses
2025-08-12 15:29:30 -03:00
Shroominic 185f060b54 feat: integrate logging into FastAPI application
- Initialize logging configuration at startup
- Add LoggingMiddleware for request tracking
- Add structured logging for application lifecycle events
- Register exception handlers for better error responses
- Add proper error handling in startup/shutdown
2025-08-12 15:29:14 -03:00
Shroominic 9c4b827d74 feat: add comprehensive logging infrastructure
- Add centralized logging configuration with daily rotation
- Implement custom TRACE log level for detailed debugging
- Add security filter to redact sensitive data (tokens, keys, passwords)
- Add request ID tracking via middleware and context variables
- Add version filter to include package version in all logs
- Implement structured JSON logging for production
- Add exception handlers with request ID tracking
- Configure Rich console handler for development
2025-08-12 15:29:01 -03:00
Shroominic b552aea520 fix folder name 2025-08-12 15:02:22 -03:00
Shroominic 5173e0f133 convert prints to logging 2025-08-12 15:02:15 -03:00
Shroominic 67348d7fb2 rm alembic logging override 2025-08-12 14:36:22 -03:00
shroominicandGitHub 4c15114fc0 Merge pull request #125 from Routstr/migrate-docker-smoothly
Migrate docker smoothly
2025-08-11 14:43:00 -03:00
Shroominic 3d42960d20 fmt 2025-08-11 14:42:22 -03:00
Shroominic 4c3d11f09c migrate-docker-smoothly 2025-08-11 14:41:44 -03:00
shroominicandGitHub 432fa25ff8 Merge pull request #122 from Routstr/fix-msat-bearer-payments
fix msat Bearer payments
2025-08-11 00:02:21 -03:00
Shroominic c35464fb11 fix tests 2025-08-10 23:58:58 -03:00
Shroominic bb32844104 Merge remote-tracking branch 'origin/main' into fix-msat-bearer-payments 2025-08-10 23:44:49 -03:00
shroominicandGitHub ec5eeae49f Merge pull request #123 from Routstr/fix-ci
fix CI
2025-08-10 23:43:55 -03:00
Shroominic d75939b547 fix CI 2025-08-10 23:41:56 -03:00
Shroominic 8a8aeeab81 Merge branch 'main' into fix-msat-bearer-payments 2025-08-10 23:39:21 -03:00
shroominicandGitHub 7eb88346db Merge pull request #117 from Routstr/chdir-router-routstr
change dir 'router' -> 'routstr'
2025-08-10 23:38:14 -03:00
Shroominic 0451ca5bd9 fix msat Bearer payments 2025-08-10 23:32:35 -03:00
Shroominic a87793b395 Merge remote-tracking branch 'origin/main' into chdir-router-routstr 2025-08-10 22:02:16 -03:00
shroominicandGitHub 6b9417aa68 Merge pull request #120 from Routstr/fix-bug-in-sats-pricing-calculation
fix: bug in sats pricing calculation
2025-08-10 21:38:56 -03:00
Shroominic 277924c777 fix: bug in sats pricing calculation 2025-08-10 20:40:08 -03:00
Cursor Agent d1cb123f91 Merge branch 'main' into chdir-router-routstr - Resolved conflict by keeping deletion of setup.py 2025-08-10 18:50:50 +00:00
shroominicandGitHub f2890d819e Merge pull request #115 from Routstr/shroominic-patch-1
fix container.yml
2025-08-10 13:49:06 -03:00
Shroominic 48b40e196b add core tag, still maintain deprecated proxy tag 2025-08-10 13:48:44 -03:00
shroominicandGitHub 7b405258ad Merge pull request #113 from Routstr/comprehensive-CONTRIBUTING.md-file
comprehensive CONTRIBUTING.md file
2025-08-09 15:02:44 -03:00
shroominicandGitHub 491dd48eee Merge pull request #116 from Routstr/fix-migrations
Fix migrations
2025-08-09 15:01:49 -03:00
Shroominic 88a0a41201 fix 2025-08-09 14:57:55 -03:00
Shroominic 503e861621 change dir 'router' -> 'routstr' 2025-08-09 14:55:26 -03:00
Shroominic 1cfa8cbee4 only run if not there yet 2025-08-09 14:28:41 -03:00
Shroominic 194c1d457d rm setup 2025-08-09 14:23:29 -03:00
shroominicandGitHub efb5247cdf fix container.yml 2025-08-09 14:00:18 -03:00
shroominicandGitHub 37c00d1e55 Merge pull request #29 from Routstr/codex/add-alembic-migrations-for-sqlmodel
Add Alembic migrations
2025-08-09 13:55:21 -03:00
Shroominic 34859d94d3 usuful migration to test 2025-08-09 13:50:27 -03:00
Shroominic 2698d0fa81 auto run migrations on startup 2025-08-09 13:50:05 -03:00
Shroominic 12d2d3714f rm non shortcuts 2025-08-09 13:49:17 -03:00
Shroominic b3208ffe61 fix typing 2025-08-09 13:49:07 -03:00
Shroominic c31f0f1603 add db migration info 2025-08-09 13:43:49 -03:00
Shroominic 65ef300a06 add alembic 2025-08-09 13:43:39 -03:00
Shroominic 13c70722b5 initial migrartion 2025-08-09 13:31:07 -03:00
Shroominic c2acaec288 add sqlmodel 2025-08-09 13:31:00 -03:00
Shroominic 1850f7b5b9 fixes 2025-08-09 13:28:20 -03:00
Shroominic 30756816c4 Merge main into codex/add-alembic-migrations-for-sqlmodel 2025-08-09 13:08:24 -03:00
Shroominic 59924661cd comprehensive CONTRIBUTING.md file 2025-08-09 12:54:46 -03:00
shroominicandGitHub c85d6423be Merge pull request #78 from kwsantiago/kwsantiago/62-comprehensive-tests
feat: Implement Comprehensive Integration Tests
2025-08-09 12:46:38 -03:00
Shroominic e5e4888dba makefile + test improvements 2025-08-09 12:44:21 -03:00
Shroominic 941bb5f052 fix linting 2025-08-09 12:43:44 -03:00
Shroominic 94de9c68c8 fix docker/local testmode 2025-08-09 12:43:31 -03:00