@@ -259,18 +259,23 @@ def actions_for_process(self, process):
259
259
'href' : 'index.html?processname=%s&action=clearlog' % processname ,
260
260
'target' : None ,
261
261
}
262
- tailf = {
263
- 'name' : 'Tail -f' ,
262
+ tailf_stdout = {
263
+ 'name' : 'Tail -f Stdout ' ,
264
264
'href' : 'logtail/%s' % processname ,
265
265
'target' : '_blank'
266
266
}
267
+ tailf_stderr = {
268
+ 'name' : 'Tail -f Stderr' ,
269
+ 'href' : 'logtail/%s/stderr' % processname ,
270
+ 'target' : '_blank'
271
+ }
267
272
if state == ProcessStates .RUNNING :
268
- actions = [restart , stop , clearlog , tailf ]
273
+ actions = [restart , stop , clearlog , tailf_stdout , tailf_stderr ]
269
274
elif state in (ProcessStates .STOPPED , ProcessStates .EXITED ,
270
275
ProcessStates .FATAL ):
271
- actions = [start , None , clearlog , tailf ]
276
+ actions = [start , None , clearlog , tailf_stdout , tailf_stderr ]
272
277
else :
273
- actions = [None , None , clearlog , tailf ]
278
+ actions = [None , None , clearlog , tailf_stdout , tailf_stderr ]
274
279
return actions
275
280
276
281
def css_class_for_state (self , state ):
0 commit comments