Skip to content

Commit

Permalink
Use databricks.sdk.oauth logger for single-request server
Browse files Browse the repository at this point in the history
Fix #69
  • Loading branch information
nfx committed Apr 19, 2023
1 parent d7089ec commit 48a7c09
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion databricks/sdk/oauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from dataclasses import dataclass
from datetime import datetime, timedelta
from http.server import BaseHTTPRequestHandler, HTTPServer
from typing import Dict, List
from typing import Dict, List, Any

import requests
import requests.auth
Expand Down Expand Up @@ -128,6 +128,9 @@ def __init__(self, feedback: list, *args):
self._feedback = feedback
super().__init__(*args)

def log_message(self, fmt: str, *args: Any) -> None:
logger.debug(fmt, *args)

def do_GET(self):
from urllib.parse import parse_qsl
parts = self.path.split('?')
Expand Down

0 comments on commit 48a7c09

Please sign in to comment.