File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -585,7 +585,7 @@ def run_waf(self):
585
585
ports_waf = [80 ]
586
586
587
587
host_config_waf = client .api .create_host_config (
588
- binds = [f"{ os . environ [ 'NEBULA_LOGS_DIR' ] } /waf/nginx:/var/log/nginx" ],
588
+ binds = [f"{ self . log_dir } /waf/nginx:/var/log/nginx" ],
589
589
privileged = True ,
590
590
port_bindings = {80 : self .waf_port },
591
591
)
@@ -668,7 +668,7 @@ def run_waf(self):
668
668
669
669
host_config_promtail = client .api .create_host_config (
670
670
binds = [
671
- f"{ os . environ [ 'NEBULA_LOGS_DIR' ] } /waf/nginx:/var/log/nginx" ,
671
+ f"{ self . log_dir } /waf/nginx:/var/log/nginx" ,
672
672
],
673
673
)
674
674
@@ -699,7 +699,7 @@ def stop_waf():
699
699
700
700
@staticmethod
701
701
def stop_all ():
702
- logging . info ("Closing NEBULA (exiting from components)... Please wait" )
702
+ print ("Closing NEBULA (exiting from components)... Please wait" )
703
703
try :
704
704
Deployer .stop_frontend ()
705
705
Deployer .stop_controller ()
@@ -713,4 +713,6 @@ def stop_all():
713
713
os .kill (pid , signal .SIGKILL )
714
714
sys .exit (0 )
715
715
except Exception as e :
716
- logging .info (f"Nebula is closed with errors { e } " )
716
+ print (f"Nebula is closed with errors { e } " )
717
+ finally :
718
+ sys .exit (0 )
You can’t perform that action at this time.
0 commit comments