mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 19:28:00 +00:00
lf_cisco_power.py : ability to pass log file name so subprocess (mainly
cisco_wifi_ctl.py, or pass stdout if a log file is not to be created. lf_cisco_snp.py : added also the ability to user stdout if log file not passed in , will update the logging for lf_cisco_snp.py - in another commit
This commit is contained in:
@@ -1480,6 +1480,9 @@ TODO: Radio descriptions in realm , the 1. refers to the chassi hopefully corres
|
||||
if args.log:
|
||||
outfile_log = "{}_{}_output_log.log".format(args.outfile,current_time)
|
||||
print("output file log: {}".format(outfile_log))
|
||||
else:
|
||||
outfile_log = "stdout"
|
||||
print("output file log: {}".format(outfile_log))
|
||||
|
||||
console_handler = logging.StreamHandler()
|
||||
formatter = logging.Formatter(FORMAT)
|
||||
|
||||
Reference in New Issue
Block a user