diff --git a/get_ee_from_region.py b/get_ee_from_region.py index fe84c96..f51fa41 100755 --- a/get_ee_from_region.py +++ b/get_ee_from_region.py @@ -1,6 +1,5 @@ #!/usr/bin/env python3 -''' This is a template for creating new python scripts, -complete with argument processing and simple I/O ''' +''' This is a program to get a url from google ee api based on supplied region''' import logging import stat @@ -29,7 +28,7 @@ class Timerlog: if duration_only: return "Timer [{}] duration [{:.5f}]".format( self.name, self.time_end - self.time_start) - return "Timer [{}] begin [{:.5f}] end [{:.5f}] duration [{:.5f}]".format( + return "Timer [{}] begin [{:.5f}] end [{:.5f}] duration [{:.9f}]".format( self.name, self.time_start, self.time_end, self.time_end - self.time_start) program_name = 'get_ee_from_region.py' @@ -96,3 +95,10 @@ if args.logging or args.verbose: if args.verbose: logging.debug('logging to stderr requested') +t = Timerlog("atomic test").start() +logging.debug(t.end().report()) + +logging.debug("Country is [{}]".format(args.country)) +logging.debug("Region is [{}]".format(args.region)) + +