WeKnora/internal
hobostay a39c9dab9b fix: replace standard log with structured logger in main and recovery middleware
This PR continues the migration to structured logging by replacing the
standard Go log package usage with the project's structured logger.

Changes:
- cmd/server/main.go: Replace all log.Printf, log.Println, log.Fatalf
  with logger.Infof, logger.Info, logger.Fatalf
- internal/middleware/recovery.go: Replace log.Printf with
  logger.ErrorWithFields for better panic logging with structured data
- Remove log.SetFlags and log.SetOutput from main.go as they're no
  longer needed with the structured logger

Benefits:
- Consistent logging format across the entire application
- Better log parsing and analysis with structured fields
- Request ID tracking in recovery middleware for easier debugging
- Proper integration with the project's logging configuration

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-02-06 17:59:15 +08:00
..
agent feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
application feat: enhance agent skills sandbox configuration and availability 2026-02-04 20:58:24 +08:00
common refactor: Sanitize log inputs in various handlers to enhance security 2025-11-26 00:19:26 +08:00
config feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
container fix: typo missed in previous commit 2026-02-06 17:58:30 +08:00
database feat: 支持数据库迁移脏状态自动恢复和Neo4j连接重试机制 2025-12-08 19:38:16 +08:00
errors feat: Add agent configuration and cleanup scripts for database migrations 2025-11-05 23:18:44 +08:00
event feat: Implement parallel search functionality combining chunk and entity searches, enhancing retrieval efficiency and result accuracy 2025-12-03 17:45:21 +08:00
handler feat: update sandbox service configuration in Docker Compose files 2026-02-04 21:34:07 +08:00
logger feat: Add configurable global log level via env 2026-02-04 19:18:35 +08:00
mcp fix: MCP Client connection state not marked as closed after connection loss in SSE transport type 2026-02-02 10:42:19 +08:00
middleware fix: replace standard log with structured logger in main and recovery middleware 2026-02-06 17:59:15 +08:00
models fix(chat): strip thinking content from model output 2026-02-04 19:35:55 +08:00
router chore: fix ChunkExtracter typo (ChunkExtractor) 2026-02-06 13:39:28 +08:00
runtime init commit 2025-08-05 15:08:07 +08:00
sandbox feat: optimize security and deployment of agent skills 2026-02-04 20:08:49 +08:00
searchutil Optimize Jaccard function for set comparisons 2026-02-05 20:05:55 +08:00
stream feat(redis): add REDIS_USERNAME support for Redis ACL 2026-02-04 19:38:40 +08:00
tracing init commit 2025-08-05 15:08:07 +08:00
types feat: adjust sandbox setting of agentConfig 2026-02-04 20:08:49 +08:00
utils feat(web_fetch): enhance web fetch tool with DNS pinning and validation improvements 2026-02-02 13:33:39 +08:00