mirror of
				https://gitea.com/gitea/gitea-mcp.git
				synced 2025-11-04 04:11:50 +00:00 
			
		
		
		
	feat: Add debug (#28)
Reviewed-on: https://gitea.com/gitea/gitea-mcp/pulls/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