Skip to content

Commit 96f67a7

Browse files
authored
update logging for whole package
1 parent 175056e commit 96f67a7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/jupyter_pgadmin_proxy/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44
import pwd
55
import getpass
66

7+
logging.basicConfig(level="INFO")
8+
logger = logging.getLogger("pgadmin")
9+
logger.setLevel("INFO")
10+
711

812
def _get_env(port, base_url):
913
"""
@@ -44,9 +48,6 @@ def run_app():
4448
This method is run by jupyter-server-proxy package to launch the Web app.
4549
"""
4650

47-
logging.basicConfig(level="INFO")
48-
logger = logging.getLogger("pgadmin")
49-
logger.setLevel("INFO")
5051
logger.info("Initializing Jupyter pgadmin Proxy")
5152

5253
icon_path = get_icon_path()

0 commit comments

Comments
 (0)