tDon't log [INFO] by default - amprolla - devuan's apt repo merger
HTML git clone git://parazyd.org/amprolla.git
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit e8d7a7be178d435ff59f32ae1729a601cb4ccb9f
DIR parent 5a2e7d0f6ababbcdcfdd8fd31f474618ae72665b
HTML Author: parazyd <parazyd@dyne.org>
Date: Sun, 17 Dec 2017 00:46:47 +0100
Don't log [INFO] by default
Diffstat:
M amprolla_init.py | 2 +-
M amprolla_merge.py | 2 +-
M amprolla_merge_contents.py | 2 +-
M amprolla_update.py | 2 +-
M lib/log.py | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
---
DIR diff --git a/amprolla_init.py b/amprolla_init.py
t@@ -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)
DIR diff --git a/amprolla_merge.py b/amprolla_merge.py
t@@ -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)
DIR diff --git a/amprolla_merge_contents.py b/amprolla_merge_contents.py
t@@ -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)
DIR diff --git a/amprolla_update.py b/amprolla_update.py
t@@ -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)
DIR diff --git a/lib/log.py b/lib/log.py
t@@ -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
"""