From 913cc3d533b78fb4634053f6d20e75aa0b1642e0 Mon Sep 17 00:00:00 2001 From: qhy040404 Date: Mon, 23 May 2022 10:55:56 +0800 Subject: [PATCH] Bump(pre) --- src/main.py | 9 +-------- src/reserve.py | 2 +- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/main.py b/src/main.py index fa07d2e..77b3e00 100644 --- a/src/main.py +++ b/src/main.py @@ -1,7 +1,6 @@ # coding=utf-8 # import -import argparse import os import platform import smtplib @@ -12,13 +11,7 @@ import reserve # pre-define -ver = '3.0.1.9-pre1' - -# process arg -parser = argparse.ArgumentParser() -parser.add_argument('-l', '--level', default='info') -args = parser.parse_args() -logLevel = args.level +ver = '3.0.1.9-pre2' # initialize reserve.logging.info('Welcome to DLUT-library-auto-reservation ' + ver) diff --git a/src/reserve.py b/src/reserve.py index 1a8ab7b..7aa9ae2 100644 --- a/src/reserve.py +++ b/src/reserve.py @@ -7,7 +7,7 @@ import sso # Configure logging -logging.basicConfig(level=logging.INFO, +logging.basicConfig(level=logging.DEBUG, filename='./access.log', filemode='a', format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s')