Commit 50046010 authored by Florian Fischer's avatar Florian Fischer
Browse files

use pretty printed debug output

parent 9bb6f7d2
......@@ -4,6 +4,7 @@
import logging
import os
from pathlib import Path
import pprint as pp
import subprocess
from typing import Mapping, Sequence, Union
......@@ -179,12 +180,14 @@ class Client(subprocess.Popen):
assert host
self.host = host
log.debug('Creating %s client: %s', host or 'local', {
'cmd': self.cmd,
'out': out_file,
'err': err_file,
'host': host
})
log.debug(
'Creating %s client:\n%s', host or 'local',
pp.pformat({
'cmd': self.cmd,
'out': out_file,
'err': err_file,
'host': host
}))
self.fout = open(out_file, 'w')
self.ferr = open(err_file, 'w')
......
......@@ -3,6 +3,7 @@
import logging
from pathlib import Path
import pprint as pp
import subprocess
from .globalvars import KILL_CMD, TERMINATION_TIME
......@@ -46,13 +47,14 @@ class Server(subprocess.Popen):
err_file = bench_dir / SERVER_ERR.format(run=run)
log.debug(
'Creating %s server: %s', name, {
'Creating %s server:\n%s', name,
pp.pformat({
'cmd': self.cmd,
'out': out_file,
'err': err_file,
'env': env,
'host': host or 'localhost'
})
}))
self.fout = open(out_file, 'w')
self.ferr = open(err_file, 'w')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment