mirror of
https://github.com/bellingcat/sugartrail.git
synced 2026-06-30 22:28:40 +03:00
added company logging
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"execution_count": 1,
|
||||
"id": "f17ebdd2",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
@@ -21,7 +21,25 @@
|
||||
"from IPython.display import display, HTML\n",
|
||||
"import requests\n",
|
||||
"import shutil\n",
|
||||
"from pathlib import Path"
|
||||
"from pathlib import Path\n",
|
||||
"import logging"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "a94bfb25",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"%%capture\n",
|
||||
"logging.basicConfig(\n",
|
||||
" level=logging.INFO,\n",
|
||||
" format='%(asctime)s - %(levelname)s - %(message)s',\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"# Create a logger instance\n",
|
||||
"logger = logging.getLogger(__name__)"
|
||||
]
|
||||
},
|
||||
{
|
||||
@@ -144,6 +162,7 @@
|
||||
" navigation_button.disabled = False\n",
|
||||
" depth_selector.disabled = False\n",
|
||||
" generate_network_button.disabled = False\n",
|
||||
" logger.info(f\"Company number entered: {str(company_text.value)}\")\n",
|
||||
" \n",
|
||||
" else:\n",
|
||||
" init_button.disabled=False\n",
|
||||
@@ -508,7 +527,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.10.14"
|
||||
"version": "3.10.15"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user