Skip to content

Commit

Permalink
feat: Supress log messages from http handler
Browse files Browse the repository at this point in the history
  • Loading branch information
timo-reymann committed Dec 10, 2023
1 parent fe077c3 commit 2ceb3dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions oauth2_cli_auth/http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,10 @@ def render(self, title: str, message: str, lang: str = "en", has_error: bool = F
class OAuthRedirectHandler(BaseHTTPRequestHandler):
callback_template = CallbackPageTemplate()

def log_message(self, format, *args):
# silence the log messages
pass

def do_GET(self):
params = parse_qs(urlparse(self.path).query)

Expand Down

0 comments on commit 2ceb3dc

Please sign in to comment.