aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-06-12 18:50:31 +0300
committerBonfaceKilz2024-06-12 19:21:50 +0300
commit3fd9311ec36c4ca4ab22d3f28190f3439788648f (patch)
treeb922f932a3505e10c6b341da66cbe64b32efc688 /scripts
parentd617a60450a88528a76d2f13e45f81851bf427d9 (diff)
downloadgenenetwork3-3fd9311ec36c4ca4ab22d3f28190f3439788648f.tar.gz
Change the date format for the logger.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/index-genenetwork3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork
index 9786134..02c669d 100755
--- a/scripts/index-genenetwork
+++ b/scripts/index-genenetwork
@@ -477,7 +477,8 @@ def is_data_modified(xapian_directory: str,
def create_xapian_index(xapian_directory: str, sql_uri: str,
sparql_uri: str) -> None:
logging.basicConfig(level=os.environ.get("LOGLEVEL", "DEBUG"),
- format='%(relativeCreated)s: %(levelname)s: %(message)s')
+ format='%(asctime)s %(levelname)s: %(message)s',
+ datefmt='%Y-%m-%d %H:%M:%S %Z')
logging.info("Verifying the checksums")