File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,9 @@ const Env = z.object({
6363  // Failed pod handler 
6464  FAILED_POD_HANDLER_ENABLED : BoolEnv . default ( true ) , 
6565  FAILED_POD_HANDLER_RECONNECT_INTERVAL_MS : z . coerce . number ( ) . int ( ) . default ( 1000 ) , 
66+ 
67+   // Debug 
68+   DEBUG : BoolEnv . default ( false ) , 
6669} ) ; 
6770
6871export  const  env  =  Env . parse ( stdEnv ) ; 
Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ class ManagedSupervisor {
4444  private  readonly  warmStartUrl  =  env . TRIGGER_WARM_START_URL ; 
4545
4646  constructor ( )  { 
47+     const  {  TRIGGER_WORKER_TOKEN ,  MANAGED_WORKER_SECRET ,  ...envWithoutSecrets  }  =  env ; 
48+ 
49+     if  ( env . DEBUG )  { 
50+       console . debug ( "[ManagedSupervisor] Starting up" ,  {  envWithoutSecrets } ) ; 
51+     } 
52+ 
4753    const  workloadApiProtocol  =  env . TRIGGER_WORKLOAD_API_PROTOCOL ; 
4854    const  workloadApiDomain  =  env . TRIGGER_WORKLOAD_API_DOMAIN ; 
4955    const  workloadApiPortExternal  =  env . TRIGGER_WORKLOAD_API_PORT_EXTERNAL ; 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments