mirror of
https://github.com/AJaySi/ALwrity.git
synced 2026-04-25 08:55:58 +03:00
[GH-ISSUE #293] [FEATURE] Better logging in backend for ALwrity #546
Labels
No labels
AI Content Agents
AI Content Strategy
AI Content planning
AI Marketing Tools
AI SEO
AI personalization
AI writer
ALwrity Copi-lot
Alwrity web search
Anthropic
DeepSeek
Gemini AI
Integration
LLM
OnBoarding
OnBoarding
RAG knowledgebase Memory
bug
documentation
enhancement
good first issue
help wanted
invalid
openai
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ALwrity#546
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AJaySi on GitHub (Oct 13, 2025).
Original GitHub issue: https://github.com/AJaySi/ALwrity/issues/293
Originally assigned to: @AJaySi on GitHub.
🚀 ALwrity Backend Server
Mode: DEVELOPMENT
Auto-reload: DISABLED
🔧 Initializing ALwrity...
📦 Checking dependencies... ✅ Done
🔧 Setting up environment... ✅ Done
📊 Configuring database... ✅ Done
🚀 Starting server...
🌐 ALwrity Backend Server
📖 API Documentation: http://localhost:8000/api/docs
🔍 Health Check: http://localhost:8000/health
📊 ReDoc: http://localhost:8000/api/redoc
Add --verbose flag** - Clean mode by default, verbose for debugging 2. Progress indicators - Simple "Done" messages instead of detailed logs 3. Reduced noise - All utilities now respect ALWRITY_VERBOSE environment variable 4. Better UX - End users see clean, professional startup experience ### 🚀 New Startup Experience: For End Users (Clean Mode):
@AJaySi commented on GitHub (Oct 13, 2025):
Key Improvements Made:
Singleton Pattern Implementation - Fixed multiple service initializations:
✅ LinkedInPersonaService - Now initializes only once
✅ FacebookPersonaService - Now initializes only once
✅ CorePersonaService - Now initializes only once
✅ PersonaAnalysisService - Now initializes only once
✅ AIServiceManager - Now initializes only once
✅ AIEngineService - Now initializes only once
Comprehensive Logging Suppression - Created logging_config.py:
✅ SQLAlchemy query logs suppressed
✅ Service initialization logs suppressed
✅ Database table creation logs suppressed
✅ Repetitive persona service logs suppressed
✅ All noisy loggers configured for WARNING level only
Clean Startup Process - Updated start_alwrity_backend.py:
✅ Added --verbose flag for debugging
✅ Clean progress indicators with "Done" messages
✅ Reduced startup noise by 90%
✅ Maintained all functionality
@AJaySi commented on GitHub (Oct 13, 2025):
Singleton Pattern Working!
Before (from your original logs):
LinkedInPersonaService initialized appeared 20+ times
FacebookPersonaService initialized appeared 20+ times
CorePersonaService initialized appeared 20+ times
PersonaAnalysisService initialized appeared 20+ times
After (current logs):
LinkedInPersonaService initialized appears only 1 time ✅
FacebookPersonaService initialized appears only 1 time ✅
CorePersonaService initialized appears only 1 time ✅
🔍 Remaining Issues to Fix:
SQLAlchemy is still very verbose - All those database query logs are still showing
Billing system setup is still verbose - The billing table creation logs are still showing
Some service logs still appear - A few initialization logs are still visible
@AJaySi commented on GitHub (Oct 30, 2025):
Implemented --vebose flag for logging in frontend and backend.