From b29a3c20a5d4995f650c493a19d1601194648a4c Mon Sep 17 00:00:00 2001 From: Saifeddine ALOUI Date: Tue, 16 Jan 2024 11:31:48 +0100 Subject: [PATCH] Update main.py fixed argument log import --- ollama_proxy_server/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ollama_proxy_server/main.py b/ollama_proxy_server/main.py index 293be27..b8b14fb 100644 --- a/ollama_proxy_server/main.py +++ b/ollama_proxy_server/main.py @@ -46,7 +46,7 @@ def main(): class RequestHandler(BaseHTTPRequestHandler): def add_access_log_entry(self, user, ip_address, access, server): - log_file_path = Path(sys.argv[1]) + log_file_path = args.log_path if not log_file_path.exists(): with open(log_file_path, mode='w', newline='') as csvfile: