fix: remove duplicate logger definition in login method
This commit is contained in:
parent
e64d1f8346
commit
9e36db3691
@ -2,7 +2,7 @@
|
|||||||
"cells": [
|
"cells": [
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 20,
|
"execution_count": 22,
|
||||||
"id": "f28552f1-618c-4853-92e2-566554a2de2c",
|
"id": "f28552f1-618c-4853-92e2-566554a2de2c",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
@ -12,7 +12,7 @@
|
|||||||
"True"
|
"True"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 20,
|
"execution_count": 22,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"output_type": "execute_result"
|
"output_type": "execute_result"
|
||||||
}
|
}
|
||||||
@ -28,7 +28,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 21,
|
"execution_count": 23,
|
||||||
"id": "953d142e-a575-41b7-927d-8cd1546d2747",
|
"id": "953d142e-a575-41b7-927d-8cd1546d2747",
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [
|
"outputs": [
|
||||||
|
|||||||
Binary file not shown.
@ -278,12 +278,6 @@ class KworkClient:
|
|||||||
logger.debug(f"Login response data: {response_data}")
|
logger.debug(f"Login response data: {response_data}")
|
||||||
logger.debug(f"Login cookies: {list(cookies.keys())}")
|
logger.debug(f"Login cookies: {list(cookies.keys())}")
|
||||||
|
|
||||||
# Debug: print response for troubleshooting
|
|
||||||
import logging
|
|
||||||
logger = logging.getLogger(__name__)
|
|
||||||
logger.debug(f"Login response: {response_data}")
|
|
||||||
logger.debug(f"Login cookies: {cookies}")
|
|
||||||
|
|
||||||
# Extract userId from cookies
|
# Extract userId from cookies
|
||||||
user_id = cookies.get("userId")
|
user_id = cookies.get("userId")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user