amprolla

devuan's apt repo merger
git clone git://parazyd.org/amprolla.git
Log | Files | Refs | README | LICENSE

commit e8d7a7be178d435ff59f32ae1729a601cb4ccb9f
parent 5a2e7d0f6ababbcdcfdd8fd31f474618ae72665b
Author: parazyd <parazyd@dyne.org>
Date:   Sun, 17 Dec 2017 00:46:47 +0100

Don't log [INFO] by default

Diffstat:
Mamprolla_init.py | 2+-
Mamprolla_merge.py | 2+-
Mamprolla_merge_contents.py | 2+-
Mamprolla_update.py | 2+-
Mlib/log.py | 2+-
5 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/amprolla_init.py b/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) diff --git a/amprolla_merge.py b/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) diff --git a/amprolla_merge_contents.py b/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) diff --git a/amprolla_update.py b/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) diff --git a/lib/log.py b/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 """