Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 (sonic-net#240)
jleveque authored and lguohan committed Apr 27, 2018

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
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
@@ -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"

0 comments on commit dc119c9

Please sign in to comment.