forked from gitea/gitea-mcp
feat: Add debug (#28)
Reviewed-on: gitea/gitea-mcp#28 Reviewed-by: yp05327 <576951401@qq.com> Co-authored-by: hiifong <i@hiif.ong> Co-committed-by: hiifong <i@hiif.ong>
This commit is contained in:
@@ -35,6 +35,9 @@ func Client() *gitea.Client { | ||||
} | ||||
opts = append(opts, gitea.SetHTTPClient(httpClient)) | ||||
} | ||||
if flag.Debug { | ||||
opts = append(opts, gitea.SetDebugMode()) | ||||
} | ||||
client, err = gitea.NewClient(flag.Host, opts...) | ||||
if err != nil { | ||||
log.Fatalf("create gitea client err: %v", err) | ||||
|
Reference in New Issue
Block a user