From e8d7a7be178d435ff59f32ae1729a601cb4ccb9f Mon Sep 17 00:00:00 2001 From: parazyd Date: Sun, 17 Dec 2017 00:46:47 +0100 Subject: [PATCH] Don't log [INFO] by default --- amprolla_init.py | 2 +- amprolla_merge.py | 2 +- amprolla_merge_contents.py | 2 +- amprolla_update.py | 2 +- lib/log.py | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/amprolla_init.py b/amprolla_init.py index ea2f42d..4da3343 100755 --- 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 index 97c6e18..f3a4292 100755 --- 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 index 73b1127..742ba37 100755 --- 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 index d31586d..fe355f7 100755 --- 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 index 23ecb64..33a0f8c 100644 --- 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 """