aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-06-12 18:51:07 +0300
committerBonfaceKilz2024-06-12 19:21:50 +0300
commitb21102bc4ad3678173e7c94d3e66333ec7c1d40a (patch)
tree0c028a3033e48ed7b05c355e363d45cf09f42b4a /scripts
parent3fd9311ec36c4ca4ab22d3f28190f3439788648f (diff)
downloadgenenetwork3-b21102bc4ad3678173e7c94d3e66333ec7c1d40a.tar.gz
Set the file path for the logger.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/index-genenetwork2
1 files changed, 2 insertions, 0 deletions
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')