Skip to content

Commit dc119c9

Browse files
jlevequelguohan
authored andcommitted
[show logging] For following, change 'tail -f' to 'tail -F' in order to retry in the case log is rotated (#240)
1 parent 08da428 commit dc119c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

show/main.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ def psustatus(index):
566566
def logging(process, lines, follow):
567567
"""Show system log"""
568568
if follow:
569-
run_command("sudo tail -f /var/log/syslog")
569+
run_command("sudo tail -F /var/log/syslog")
570570
else:
571571
if os.path.isfile("/var/log/syslog.1"):
572572
command = "sudo cat /var/log/syslog.1 /var/log/syslog"

0 commit comments

Comments
 (0)