Skip to content

Commit 33d85ec

Browse files
committed
Add logging to create_spark_dev function in startup.py
1 parent ce968ca commit 33d85ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docker/notebook/startup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from IPython.display import *
77
from kubernetes import client, config
88
import requests
9+
import logging
910

1011
environment = os.getenv('ENVIRONMENT', 'development') # Default to 'development' if not set
1112

@@ -101,8 +102,9 @@ def _repr_html_(self):
101102
"""
102103

103104
def create_spark_dev():
104-
response = requests.get("http://llocalhost:5002/directory/work/user_0@gmail.com/")
105+
response = requests.get("http://localhost:5002/directory/work/user_0@gmail.com/")
105106
print(response.json())
107+
logging.info("Got response from server: %s", response.json())
106108

107109
spark = PawMarkSparkSession(SparkSession.builder \
108110
.appName("PySpark Example") \

0 commit comments

Comments
 (0)