From b21102bc4ad3678173e7c94d3e66333ec7c1d40a Mon Sep 17 00:00:00 2001 From: Munyoki Kilyungi Date: Wed, 12 Jun 2024 18:51:07 +0300 Subject: Set the file path for the logger. Signed-off-by: Munyoki Kilyungi --- scripts/index-genenetwork | 2 ++ 1 file changed, 2 insertions(+) (limited to 'scripts') diff --git a/scripts/index-genenetwork b/scripts/index-genenetwork index 02c669d..3820044 100755 --- a/scripts/index-genenetwork +++ b/scripts/index-genenetwork @@ -477,6 +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"), + filename=os.environ.get("INDEX_LOG_FILE"), + filemode="a", format='%(asctime)s %(levelname)s: %(message)s', datefmt='%Y-%m-%d %H:%M:%S %Z') -- cgit v1.2.3