@@ -17,11 +17,11 @@ package veauth
1717import (
1818 "encoding/json"
1919 "fmt"
20- "log"
2120
2221 "github.com/volcengine/veadk-go/common"
2322 "github.com/volcengine/veadk-go/configs"
2423 "github.com/volcengine/veadk-go/integrations/ve_sign"
24+ "github.com/volcengine/veadk-go/log"
2525 "github.com/volcengine/veadk-go/utils"
2626)
2727
@@ -67,7 +67,6 @@ func getAPIKeyIDByProjectID(projectID, accessKey, secretKey, sessionToken, regio
6767 return "" , fmt .Errorf ("failed to describe memory project detail: %w" , err )
6868 }
6969
70- fmt .Println (string (respBody ))
7170 var res describeMemoryProjectDetailResult
7271 if err := json .Unmarshal (respBody , & res ); err != nil {
7372 return "" , fmt .Errorf ("failed to unmarshal response: %w" , err )
@@ -109,8 +108,6 @@ func getAPIKeyByAPIKeyID(projectID, apiKeyID, accessKey, secretKey, sessionToken
109108 return "" , fmt .Errorf ("failed to describe api key detail: %w" , err )
110109 }
111110
112- fmt .Println (string (respBody ))
113-
114111 var res describeAPIKeyDetailResult
115112 if err := json .Unmarshal (respBody , & res ); err != nil {
116113 return "" , fmt .Errorf ("failed to unmarshal response: %w" , err )
@@ -127,7 +124,7 @@ func GetVikingMem0Token(memoryProjectID string, region string) (string, error) {
127124 if region == "" {
128125 region = common .DEFAULT_REGION
129126 }
130- log .Printf ("Fetching Viking mem0 token..." )
127+ log .Infof ("Fetching Viking mem0 token..." )
131128
132129 accessKey := utils .GetEnvWithDefault (common .VOLCENGINE_ACCESS_KEY , configs .GetGlobalConfig ().Volcengine .AK )
133130 secretKey := utils .GetEnvWithDefault (common .VOLCENGINE_SECRET_KEY , configs .GetGlobalConfig ().Volcengine .SK )
0 commit comments