From dc119c9c0e390f8cb7ae4dea5f16b5258b0695b4 Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Wed, 18 Apr 2018 10:00:37 -0700 Subject: [PATCH] [show logging] For following, change 'tail -f' to 'tail -F' in order to retry in the case log is rotated (#240) --- show/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show/main.py b/show/main.py index 66a7aec1a018..54f5c0e517bf 100755 --- a/show/main.py +++ b/show/main.py @@ -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"