Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compact debug log into single line #521

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading