@@ -51,6 +51,7 @@ class ConsumerPerformanceService(PerformanceService):
51
51
PERSISTENT_ROOT = "/mnt/consumer_performance"
52
52
LOG_DIR = os .path .join (PERSISTENT_ROOT , "logs" )
53
53
STDOUT_CAPTURE = os .path .join (PERSISTENT_ROOT , "consumer_performance.stdout" )
54
+ STDERR_CAPTURE = os .path .join (PERSISTENT_ROOT , "consumer_performance.stderr" )
54
55
LOG_FILE = os .path .join (LOG_DIR , "consumer_performance.log" )
55
56
LOG4J_CONFIG = os .path .join (PERSISTENT_ROOT , "tools-log4j.properties" )
56
57
CONFIG_FILE = os .path .join (PERSISTENT_ROOT , "consumer.properties" )
@@ -59,7 +60,9 @@ class ConsumerPerformanceService(PerformanceService):
59
60
"consumer_performance_output" : {
60
61
"path" : STDOUT_CAPTURE ,
61
62
"collect_default" : True },
62
-
63
+ "consumer_performance_stderr" : {
64
+ "path" : STDERR_CAPTURE ,
65
+ "collect_default" : True },
63
66
"consumer_performance_log" : {
64
67
"path" : LOG_FILE ,
65
68
"collect_default" : True }
@@ -129,7 +132,8 @@ def start_cmd(self):
129
132
for key , value in self .settings .items ():
130
133
cmd += " %s=%s" % (str (key ), str (value ))
131
134
132
- cmd += " | tee %s" % ConsumerPerformanceService .STDOUT_CAPTURE
135
+ cmd += " 2>> %(stderr)s | tee -a %(stdout)s" % {'stdout' : ConsumerPerformanceService .STDOUT_CAPTURE ,
136
+ 'stderr' : ConsumerPerformanceService .STDERR_CAPTURE }
133
137
return cmd
134
138
135
139
def _worker (self , idx , node ):
0 commit comments