From 3fd9311ec36c4ca4ab22d3f28190f3439788648f Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 12 Jun 2024 18:50:31 +0300 Subject: Change the date format for the logger. Signed-off-by: Munyoki Kilyungi --- scripts/index-genenetwork | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/index-genenetwork') 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") -- cgit v1.2.3