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:
32
32
integration_type : IntegrationType = "api"
33
33
integration_org_slug : Optional [str ] = None
34
34
pending_head : bool = False
35
- timeout : Optional [int ] = None
35
+ timeout : Optional [int ] = 1200
36
36
@classmethod
37
37
def from_args (cls , args_list : Optional [List [str ]] = None ) -> 'CliConfig' :
38
38
parser = create_argument_parser ()
Original file line number Diff line number Diff line change 9
9
class SocketConfig :
10
10
api_key : str
11
11
api_url : str = "https://api.socket.dev/v0"
12
- timeout : int = 30
12
+ timeout : int = 1200
13
13
allow_unverified_ssl : bool = False
14
14
org_id : Optional [str ] = None
15
15
org_slug : Optional [str ] = None
Original file line number Diff line number Diff line change @@ -45,11 +45,11 @@ def cli():
45
45
46
46
def main_code ():
47
47
config = CliConfig .from_args ()
48
- print (f"config: { config .to_dict ()} " )
48
+ log . debug (f"config: { config .to_dict ()} " )
49
49
output_handler = OutputHandler (config )
50
50
51
51
sdk = socketdev (token = config .api_token )
52
- print ("sdk loaded" )
52
+ log . debug ("sdk loaded" )
53
53
54
54
if config .enable_debug :
55
55
set_debug_mode (True )
@@ -64,13 +64,13 @@ def main_code():
64
64
socket_config = SocketConfig (
65
65
api_key = config .api_token ,
66
66
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
68
68
)
69
- print ("loaded socket_config" )
69
+ log . debug ("loaded socket_config" )
70
70
client = CliClient (socket_config )
71
- print ("loaded client" )
71
+ log . debug ("loaded client" )
72
72
core = Core (socket_config , sdk )
73
- print ("loaded core" )
73
+ log . debug ("loaded core" )
74
74
# Load files - files defaults to "[]" in CliConfig
75
75
try :
76
76
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