Browse Source

Don't log [INFO] by default

debianarchive-update
parazyd 5 years ago
parent
commit
e8d7a7be17
Signed by untrusted user: parazyd GPG Key ID: F0CB28FCF78637DE
  1. 2
      amprolla_init.py
  2. 2
      amprolla_merge.py
  3. 2
      amprolla_merge_contents.py
  4. 2
      amprolla_update.py
  5. 2
      lib/log.py

2
amprolla_init.py

@ -93,6 +93,6 @@ if __name__ == '__main__':
main()
free_lock()
t2 = time()
info('Total time: %s' % (t2 - t1))
info('Total init time: %s' % (t2 - t1), tofile=True)
except Exception as e:
die(e)

2
amprolla_merge.py

@ -201,6 +201,6 @@ if __name__ == '__main__':
main()
free_lock()
t2 = time()
info('Total time: %s' % (t2 - t1))
info('Total full merge time: %s' % (t2 - t1), tofile=True)
except Exception as e:
die(e)

2
amprolla_merge_contents.py

@ -112,6 +112,6 @@ if __name__ == '__main__':
main()
free_lock()
t2 = time()
info('Total time: %s' % (t2 - t1))
info('Total contents merge time: %s' % (t2 - t1), tofile=True)
except Exception as e:
die(e)

2
amprolla_update.py

@ -149,6 +149,6 @@ if __name__ == '__main__':
main()
free_lock()
t2 = time()
info('Total time: %s' % (t2 - t1))
info('Total incremental update time: %s' % (t2 - t1), tofile=True)
except Exception as e:
die(e)

2
lib/log.py

@ -40,7 +40,7 @@ def warn(msg, tofile=True):
logtofile('amprolla.txt', msg+'\n')
def info(msg, tofile=True):
def info(msg, tofile=False):
"""
Log informational message and continue
"""

Loading…
Cancel
Save