Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
i4
manycore
emper-io-eval
Commits
50046010
Commit
50046010
authored
Dec 05, 2021
by
Florian Fischer
Browse files
use pretty printed debug output
parent
9bb6f7d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
bench/client.py
View file @
50046010
...
...
@@ -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'
)
...
...
bench/server.py
View file @
50046010
...
...
@@ -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'
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment