Skip to content

Commit a88a193

Browse files
committed
Add a new "tail -f stderr" link to the Web UI
Closes Supervisor#254 Closes Supervisor#1027 Closes Supervisor#1173
1 parent 2a60640 commit a88a193

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

CHANGES.rst

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
- Web UI buttons no longer use background images. Patch by Dmytro Karpovych.
1313

14+
- The Web UI now has a link to view ``tail -f stderr`` for a process in
15+
addition to the existing ``tail -f stdout`` link. Based on a
16+
patch by OuroborosCoding.
17+
1418
- The HTTP server will now send an ``X-Accel-Buffering: no`` header in
1519
logtail responses to fix Nginx proxy buffering. Patch by Weizhao Li.
1620

supervisor/ui/stylesheets/supervisor.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ html, body {
7878
min-height: 100%;
7979
height: auto !important;
8080
height: 100%;
81-
width: 782px;
81+
width: 850px;
8282
margin: 0 auto -31px;
8383
}
8484
#footer,

supervisor/web.py

+10-5
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,23 @@ def actions_for_process(self, process):
259259
'href': 'index.html?processname=%s&action=clearlog' % processname,
260260
'target': None,
261261
}
262-
tailf = {
263-
'name': 'Tail -f',
262+
tailf_stdout = {
263+
'name': 'Tail -f Stdout',
264264
'href': 'logtail/%s' % processname,
265265
'target': '_blank'
266266
}
267+
tailf_stderr = {
268+
'name': 'Tail -f Stderr',
269+
'href': 'logtail/%s/stderr' % processname,
270+
'target': '_blank'
271+
}
267272
if state == ProcessStates.RUNNING:
268-
actions = [restart, stop, clearlog, tailf]
273+
actions = [restart, stop, clearlog, tailf_stdout, tailf_stderr]
269274
elif state in (ProcessStates.STOPPED, ProcessStates.EXITED,
270275
ProcessStates.FATAL):
271-
actions = [start, None, clearlog, tailf]
276+
actions = [start, None, clearlog, tailf_stdout, tailf_stderr]
272277
else:
273-
actions = [None, None, clearlog, tailf]
278+
actions = [None, None, clearlog, tailf_stdout, tailf_stderr]
274279
return actions
275280

276281
def css_class_for_state(self, state):

0 commit comments

Comments
 (0)