Skip to content

Commit 6ff1b53

Browse files
author
Bryan Sieber
committed
From print to logging. Services will be rewritten soon...
1 parent 9f0fd20 commit 6ff1b53

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/jbi/services.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
import logging
2+
13
import bugzilla as rh_bugzilla # type: ignore
24
from atlassian import Jira # type: ignore
35

46
from src.app import environment
57

68
settings = environment.get_settings()
9+
services_logger = logging.getLogger("src.jbi.services")
710

811

912
def get_jira():
@@ -29,7 +32,7 @@ def bugzilla_check_health():
2932
def jira_check_health():
3033
jira = get_jira()
3134
server_info = jira.get_server_info(True)
32-
print(server_info)
35+
services_logger.info(server_info)
3336
health = {"up": False}
3437
return health
3538

0 commit comments

Comments
 (0)