Skip to content
Snippets Groups Projects
Commit 555e3b6d authored by Antoine Pietri's avatar Antoine Pietri
Browse files

rpc_server: use shlex.quote() to print command

parent a55edc1f
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ A simple tool to start the swh-graph GRPC server in Java.
"""
import logging
import shlex
import subprocess
import aiohttp.test_utils
......@@ -33,7 +34,7 @@ def spawn_java_rpc_server(config, port=None):
print(cmd)
# XXX: shlex.join() is in 3.8
# logging.info("Starting RPC server: %s", shlex.join(cmd))
logging.info("Starting RPC server: %s", str(cmd))
logging.info("Starting RPC server: %s", " ".join(shlex.quote(x) for x in cmd))
server = subprocess.Popen(cmd)
return server, port
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment