You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Console and File Output
root@amoghv:/etc/jsnapy/testfiles#
root@amoghv:/etc/jsnapy/testfiles# python test.py
2018-01-19 15:09:24,129 - main - INFO - computing checksum on local package: /var/tmp/junos/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:24,371 - main - INFO - cleaning filesystem ...
2018-01-19 15:09:24,371 - main - INFO - cleaning filesystem ...
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
The text was updated successfully, but these errors were encountered:
According to your script, each time the function update_progress() is called, it adds a new console handler and a file handler to the root logger. Please try to change the way of configuring the logging handlers by adding them only once. Below is the modified code.
Console and File Output
root@amoghv:/etc/jsnapy/testfiles#
root@amoghv:/etc/jsnapy/testfiles# python test.py
2018-01-19 15:09:24,129 - main - INFO - computing checksum on local package: /var/tmp/junos/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:24,371 - main - INFO - cleaning filesystem ...
2018-01-19 15:09:24,371 - main - INFO - cleaning filesystem ...
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:09:35,246 - main - INFO - before copy, computing checksum on remote package: /var/tmp/jinstall-ex-4200-15.1R6.7-domestic-signed.tgz
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
2018-01-19 15:10:10,518 - main - INFO - jinstall-ex-4200-15.1R6.7-domestic-signed.tgz: 13778944 / 137685524 (10%)
The text was updated successfully, but these errors were encountered: