Commit 83d24a11 authored by Luciano Cauzzi's avatar Luciano Cauzzi

updated print format

parent feb0a0f9
......@@ -10,7 +10,9 @@ def print_progress_percentage(current, total, desc=None):
try:
percentage = int((current/total) * 100)
if percentage % 10 == 0:
logger.info(desc + ": " if desc is not None else "" + "Total percentage = " + str(int(percentage)))
prefix = desc + ": " if desc is not None else ""
suffix = "Total percentage = {.2}".format(percentage)
logger.info(prefix + suffix)
except Exception as e:
logger.error("Error while printing percentage\n {}".format(e))
......
......@@ -3,7 +3,7 @@ import setuptools
setup(
name='logger_library',
version='0.1.10',
version='0.1.11',
packages=setuptools.find_packages(),
install_requires=['logzero', 'dependency_injector'],
url='http://github/innovation-that-excites/logger_library',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment