Skip to content

Commit

Permalink
compact debug log into single line
Browse files Browse the repository at this point in the history
replace pformat/pprint with json.dumps
  • Loading branch information
haobibo authored Jul 1, 2024
1 parent 2e89ca0 commit b76f578
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dockerspawner/dockerspawner.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"""
import asyncio
import inspect
import json
import os
import string
import warnings
from concurrent.futures import ThreadPoolExecutor
from functools import partial
from io import BytesIO
from pprint import pformat
from tarfile import TarFile, TarInfo
from textwrap import dedent, indent
from urllib.parse import urlparse
Expand Down Expand Up @@ -1010,7 +1010,7 @@ async def poll(self):

container_state = container["State"]
self.log.debug(
"Container %s status: %s", self.container_id[:7], pformat(container_state)
"Container %s status: %s", self.container_id[:7], json.dumps(container_state, ensure_ascii=False)
)

if container_state["Running"]:
Expand Down

0 comments on commit b76f578

Please sign in to comment.