Skip to content

Commit b0e07d3

Browse files
committed
Verbose hash report print
1 parent 558c559 commit b0e07d3

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

codegen.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -912,10 +912,9 @@ func MakePythoncode(swagger *openapi3.Swagger, name, url, method string, paramet
912912
)
913913

914914
// Use lowercase when checking
915-
//if strings.Contains(strings.ToLower(functionname), "upload_a_file") {
916-
// log.Printf("\n%s", data)
917-
//}
918-
915+
if strings.Contains(strings.ToLower(functionname), "hash_report") {
916+
log.Printf("\n%s", data)
917+
}
919918

920919
return functionname, data
921920
}

oauth2.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3936,8 +3936,6 @@ func RunOauth2Request(ctx context.Context, user User, appAuth AppAuthenticationS
39363936
if err != nil {
39373937
if len(oauthResp.AccessToken) == 0 {
39383938
log.Printf("[ERROR] Failed unmarshaling (appauth oauth2 refresh). URL: %#v: %s. Data: %s. Trying to map to oauthResp anyway", url, respBody, err)
3939-
// respBody as queries -> oauthResp
3940-
// access_token=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&scope=notifications%2Cproject%2Crepo%2Cuser&token_type=bearer.
39413939
changed := false
39423940
if strings.Contains(string(respBody), "access_token") {
39433941
for _, item := range strings.Split(string(respBody), "&") {

0 commit comments

Comments
 (0)