From d60fba0b5ff12bfb05c0ed71a7f260d87e5737aa Mon Sep 17 00:00:00 2001 From: molotgor Date: Wed, 26 Jun 2024 12:04:09 +0400 Subject: [PATCH] fix logging config and remove it from requirements --- requirements.txt | 3 +- var/th2/config/log4py.conf | 88 +------------------------------------- 2 files changed, 2 insertions(+), 89 deletions(-) diff --git a/requirements.txt b/requirements.txt index 13a02f5..d3b9cde 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,5 +2,4 @@ papermill aiohttp aiojobs aiohttp-swagger -ipykernel -logging \ No newline at end of file +ipykernel \ No newline at end of file diff --git a/var/th2/config/log4py.conf b/var/th2/config/log4py.conf index ada2093..1b2a653 100644 --- a/var/th2/config/log4py.conf +++ b/var/th2/config/log4py.conf @@ -35,90 +35,4 @@ formatter=formatter args=('../all.log',) [formatter_formatter] -format=%(asctime)s - %(name)s - %(levelname)s - %(message)sINFO:th2_common:asfg -DEBUG:th2_common:notebooksDir=F:/ExactWork/th2-json-stream-provider-py/notebooks/ -DEBUG:th2_common:resultsDir=F:/ExactWork/th2-json-stream-provider-py/results/ -DEBUG:th2_common:logDir=F:/ExactWork/th2-json-stream-provider-py/logs/ -DEBUG:asyncio:Using proactor: IocpProactor -INFO:th2_common:notebooksDir=F:/ExactWork/th2-json-stream-provider-py/notebooks/ -INFO:th2_common:resultsDir=F:/ExactWork/th2-json-stream-provider-py/results/ -INFO:th2_common:logDir=F:/ExactWork/th2-json-stream-provider-py/logs/ -INFO:th2_common:starting server -DEBUG:asyncio:Using proactor: IocpProactor -INFO:th2_common:notebooksDir=F:/ExactWork/th2-json-stream-provider-py/notebooks/ -INFO:th2_common:resultsDir=F:/ExactWork/th2-json-stream-provider-py/results/ -INFO:th2_common:logDir=F:/ExactWork/th2-json-stream-provider-py/logs/ -INFO:th2_common:starting server -DEBUG:asyncio:Using proactor: IocpProactor -INFO:th2_common:/files?path=F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb -INFO:papermill:Input Notebook: F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb -INFO:aiohttp.access:127.0.0.1 [25/Jun/2024:15:03:30 +0400] "GET /files?path=F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb HTTP/1.1" 200 377 "http://localhost:9001/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" -INFO:th2_common:/execute?path=F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb -INFO:aiohttp.access:127.0.0.1 [25/Jun/2024:15:03:46 +0400] "POST /execute?path=F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb HTTP/1.1" 200 295 "http://localhost:9001/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" -INFO:th2_common:launching notebook F:/ExactWork/th2-json-stream-provider-py/notebooks/test_files.ipynb with {'test': '20240531-21:50:15.08000000', 'output_path': 'F:/ExactWork/th2-json-stream-provider-py/results//test_files_2024-06-25T11-03-46-991535.jsonl'} -INFO:papermill:Input Notebook: test_files.ipynb -INFO:papermill:Output Notebook: F:/ExactWork/th2-json-stream-provider-py/logs//test_files_2024-06-25T11-03-46-991535.log.ipynb -DEBUG:papermill.translators:Black is not installed, parameters won't be formatted -DEBUG:asyncio:Using selector: SelectSelector -DEBUG:traitlets:Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner -DEBUG:traitlets:Starting kernel: ['C:\\Program Files\\Python310\\python.exe', '-m', 'ipykernel_launcher', '-f', 'C:\\Users\\molotgor\\AppData\\Local\\Temp\\tmppk0_9qto.json', '--HistoryManager.hist_file=:memory:'] -DEBUG:traitlets:Connecting to: tcp://127.0.0.1:63424 -DEBUG:traitlets:connecting iopub channel to tcp://127.0.0.1:63421 -DEBUG:traitlets:Connecting to: tcp://127.0.0.1:63421 -DEBUG:traitlets:connecting shell channel to tcp://127.0.0.1:63420 -DEBUG:traitlets:Connecting to: tcp://127.0.0.1:63420 -DEBUG:traitlets:connecting stdin channel to tcp://127.0.0.1:63422 -DEBUG:traitlets:Connecting to: tcp://127.0.0.1:63422 -DEBUG:traitlets:connecting heartbeat channel to tcp://127.0.0.1:63423 -DEBUG:asyncio:Using selector: SelectSelector -DEBUG:traitlets:connecting control channel to tcp://127.0.0.1:63424 -DEBUG:traitlets:Connecting to: tcp://127.0.0.1:63424 -INFO:papermill:Executing notebook with kernel: python3 -DEBUG:papermill:Executing cell: -output_path='test_file.jsonl' -test = '' -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'busy'} -DEBUG:papermill:msg_type: execute_input -DEBUG:papermill:content: {'code': "output_path='test_file.jsonl'\ntest = ''", 'execution_count': 1} -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'idle'} -DEBUG:papermill:Executing cell: -# Parameters -test = "20240531-21:50:15.08000000" -output_path = "F:/ExactWork/th2-json-stream-provider-py/results//test_files_2024-06-25T11-03-46-991535.jsonl" - -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'busy'} -DEBUG:papermill:msg_type: execute_input -DEBUG:papermill:content: {'code': '# Parameters\ntest = "20240531-21:50:15.08000000"\noutput_path = "F:/ExactWork/th2-json-stream-provider-py/results//test_files_2024-06-25T11-03-46-991535.jsonl"\n', 'execution_count': 2} -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'idle'} -DEBUG:papermill:Executing cell: -input_path='filetoinput.jsonl' -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'busy'} -DEBUG:papermill:msg_type: execute_input -DEBUG:papermill:content: {'code': "input_path='filetoinput.jsonl'", 'execution_count': 3} -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'idle'} -DEBUG:papermill:Executing cell: -import json -import asyncio - -with open(output_path, "w") as out_file: - with open(input_path, "r") as in_file: - for i in range(6000): - json.dump({'a':i}, out_file) - out_file.write("\n") -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'busy'} -DEBUG:papermill:msg_type: execute_input -DEBUG:papermill:content: {'code': 'import json\nimport asyncio\n\nwith open(output_path, "w") as out_file:\n with open(input_path, "r") as in_file:\n for i in range(6000):\n json.dump({\'a\':i}, out_file)\n out_file.write("\\n")', 'execution_count': 4} -DEBUG:papermill:msg_type: status -DEBUG:papermill:content: {'execution_state': 'idle'} -DEBUG:traitlets:Destroying zmq context for -DEBUG:th2_common:successfully launched notebook test_files.ipynb -INFO:th2_common:ended launch notebook test_files.ipynb with {'test': '20240531-21:50:15.08000000', 'output_path': 'F:/ExactWork/th2-json-stream-provider-py/results//test_files_2024-06-25T11-03-46-991535.jsonl'} -INFO:th2_common:/result?id=9d716019-40f0-4faa-8216-aa6ecdffa277 -INFO:aiohttp.access:127.0.0.1 [25/Jun/2024:15:03:52 +0400] "GET /result?id=9d716019-40f0-4faa-8216-aa6ecdffa277 HTTP/1.1" 200 89105 "http://localhost:9001/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36" +format=%(asctime)s - %(name)s - %(levelname)s - %(message)s \ No newline at end of file