Skip to content

Commit

Permalink
fix: pants fmt command not working (#2003)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyujin-cho committed Apr 7, 2024
1 parent 5e577d1 commit 747037c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
1 change: 1 addition & 0 deletions pants.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ backend_packages = [
"pants.backend.shell",
"pants.backend.experimental.python",
"pants.backend.experimental.python.lint.ruff.check",
"pants.backend.experimental.python.lint.ruff.format",
"pants.backend.experimental.visibility",
"pants.backend.plugin_development",
# "ruff_preview", # a vendored backport of the pants 2.20's lint plugin
Expand Down
12 changes: 3 additions & 9 deletions src/ai/backend/common/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,7 @@ def emit(self, record):
class GELFTLSHandler(graypy.GELFTLSHandler):
ssl_ctx: ssl.SSLContext

def __init__(
self,
host,
port=12204,
validate=False,
ca_certs=None,
**kwargs
):
def __init__(self, host, port=12204, validate=False, ca_certs=None, **kwargs):
"""Initialize the GELFTLSHandler
:param host: GELF TLS input host.
Expand Down Expand Up @@ -241,7 +234,8 @@ def makeSocket(self, timeout=1):
plain_socket.settimeout(timeout)

wrapped_socket = self.ssl_ctx.wrap_socket(
plain_socket, server_hostname=self.host,
plain_socket,
server_hostname=self.host,
)
wrapped_socket.connect((self.host, self.port))

Expand Down

0 comments on commit 747037c

Please sign in to comment.