fixed glm panic
This commit is contained in:
@@ -223,7 +223,8 @@ func InitGLMService(conf GLMConfig, log logger.Logger) *glm.SDK {
|
||||
log.Error("Failed to initialize GLM SDK", map[string]interface{}{
|
||||
"error": err.Error(),
|
||||
})
|
||||
panic(fmt.Sprintf("Failed to initialize GLM SDK: %v", err))
|
||||
log.Warn("GLM service will be disabled, translation features will not be available", map[string]interface{}{})
|
||||
return nil
|
||||
}
|
||||
|
||||
log.Info("GLM SDK initialized successfully", map[string]interface{}{
|
||||
|
||||
Reference in New Issue
Block a user