mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-29 12:09:31 +08:00
Refine handling of POST /api/v1/datasets/search in GO (#15583)
### What problem does this PR solve? Refine handling of POST /api/v1/datasets/search in GO ### Type of change - [x] Refactoring
This commit is contained in:
@@ -45,7 +45,7 @@ func main() {
|
||||
flag.Parse()
|
||||
|
||||
// Initialize logger
|
||||
if err := common.Init("info"); err != nil {
|
||||
if err := common.Init("info", "admin_server.log"); err != nil {
|
||||
panic("failed to initialize logger: " + err.Error())
|
||||
}
|
||||
|
||||
@@ -59,7 +59,7 @@ func main() {
|
||||
|
||||
// Reinitialize logger with configured level if different
|
||||
if cfg.Log.Level != "" && cfg.Log.Level != "info" {
|
||||
if err := common.Init(cfg.Log.Level); err != nil {
|
||||
if err := common.Init(cfg.Log.Level, "admin_server.log"); err != nil {
|
||||
common.Error("Failed to reinitialize logger with configured level", err)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user