Skip to content

Commit

Permalink
Quieter export. To see endpoint timing, use -d 25
Browse files Browse the repository at this point in the history
as documented in the -h help message now.
  • Loading branch information
nealmcb committed Nov 15, 2017
1 parent e0364b3 commit 3ae743a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@
parser.add_argument('-v, --version', dest='version', action='store_true',
help='Print version number')
parser.add_argument("-d, --debuglevel", type=int, default=logging.WARNING, dest="debuglevel",
help="Set logging level to debuglevel: DEBUG=10, INFO=20,\n WARNING=30 (the default), ERROR=40, CRITICAL=50")
help="Set logging level to debuglevel, expressed as an integer: "
"DEBUG=10, INFO=20, endpoint timing=25, WARNING=30 (the default), ERROR=40, CRITICAL=50")

parser.add_argument('--test',
action="store_true", default=False,
Expand Down Expand Up @@ -493,7 +494,7 @@ def random_sequence(args, connection, cursor, county_id, county_name):
logging.error("rla_export: random_sequence: failure: %s" % e)

def show_elapsed(r, *args, **kwargs):
print("Endpoint %s: %s. Elapsed time %.3f" % (r.url, r, r.elapsed.total_seconds()))
logging.log(25,"Endpoint %s: %s. Elapsed time %.3f" % (r.url, r, r.elapsed.total_seconds()))


def parse_corla_config(filename):
Expand Down
2 changes: 1 addition & 1 deletion server/eclipse-project/script/rla_export/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ def readme():


setup(name='rla_export',
version='1.1.0',
version='1.1.0.3',
description='Export data for publication and audit verification from ColoradoRLA: Software to facilitate risk-limiting post-election tabulation audits',
long_description=readme(),
url='https://github.com/FreeAndFair/ColoradoRLA',
Expand Down

0 comments on commit 3ae743a

Please sign in to comment.