Skip to content

Commit 48147fc

Browse files
authored
Merge pull request #169 from omgate234/housekeeping/removed-unnecessary-loggings
houskeeping: removed logging
2 parents f988712 + 62c600f commit 48147fc

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

backend/director/db/postgres/db.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ def __init__(self):
3232
)
3333
self.cursor = self.conn.cursor(cursor_factory=RealDictCursor)
3434

35-
logger.info("Connected to PostgreSQL DB..........")
36-
3735
def create_session(
3836
self,
3937
session_id: str,

backend/director/entrypoint/api/errors.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ def handle_http_exception(e):
1313
"""Return JSON instead of HTML for HTTP errors."""
1414
# start with the correct headers and status code from the error
1515

16-
logger.exception(e)
16+
if e.code != 404:
17+
logger.exception(e)
1718

1819
response = e.get_response()
1920
# replace the body with JSON

0 commit comments

Comments
 (0)