File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ class CliConfig:
3232 integration_type : IntegrationType = "api"
3333 integration_org_slug : Optional [str ] = None
3434 pending_head : bool = False
35- timeout : Optional [int ] = None
35+ timeout : Optional [int ] = 1200
3636 @classmethod
3737 def from_args (cls , args_list : Optional [List [str ]] = None ) -> 'CliConfig' :
3838 parser = create_argument_parser ()
Original file line number Diff line number Diff line change 99class SocketConfig :
1010 api_key : str
1111 api_url : str = "https://api.socket.dev/v0"
12- timeout : int = 30
12+ timeout : int = 1200
1313 allow_unverified_ssl : bool = False
1414 org_id : Optional [str ] = None
1515 org_slug : Optional [str ] = None
Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ def cli():
4545
4646def main_code ():
4747 config = CliConfig .from_args ()
48- print (f"config: { config .to_dict ()} " )
48+ log . debug (f"config: { config .to_dict ()} " )
4949 output_handler = OutputHandler (config )
5050
5151 sdk = socketdev (token = config .api_token )
52- print ("sdk loaded" )
52+ log . debug ("sdk loaded" )
5353
5454 if config .enable_debug :
5555 set_debug_mode (True )
@@ -64,13 +64,13 @@ def main_code():
6464 socket_config = SocketConfig (
6565 api_key = config .api_token ,
6666 allow_unverified_ssl = config .allow_unverified ,
67- timeout = config .timeout if config .timeout is not None else 30 # Use CLI timeout if provided
67+ timeout = config .timeout if config .timeout is not None else 1200 # Use CLI timeout if provided
6868 )
69- print ("loaded socket_config" )
69+ log . debug ("loaded socket_config" )
7070 client = CliClient (socket_config )
71- print ("loaded client" )
71+ log . debug ("loaded client" )
7272 core = Core (socket_config , sdk )
73- print ("loaded core" )
73+ log . debug ("loaded core" )
7474 # Load files - files defaults to "[]" in CliConfig
7575 try :
7676 files = json .loads (config .files ) # Will always succeed with empty list by default
You can’t perform that action at this time.
0 commit comments