Skip to content

Commit

Permalink
[show logging] For following, change 'tail -f' to 'tail -F' in order …
Browse files Browse the repository at this point in the history
…to retry in the case log is rotated (#240)
  • Loading branch information
jleveque authored and lguohan committed Apr 27, 2018
1 parent 08da428 commit dc119c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ def psustatus(index):
def logging(process, lines, follow):
"""Show system log"""
if follow:
run_command("sudo tail -f /var/log/syslog")
run_command("sudo tail -F /var/log/syslog")
else:
if os.path.isfile("/var/log/syslog.1"):
command = "sudo cat /var/log/syslog.1 /var/log/syslog"
Expand Down

0 comments on commit dc119c9

Please sign in to comment.