From bc662315c698a813b8b6dc0d30e9fa30cb0aa887 Mon Sep 17 00:00:00 2001 From: Stephen Soltesz Date: Fri, 4 Jun 2010 21:56:10 +0000 Subject: [PATCH] add logging to reboot.py --- commands/reboot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/reboot.py b/commands/reboot.py index 92e0f69..d5ce318 100755 --- a/commands/reboot.py +++ b/commands/reboot.py @@ -1,6 +1,7 @@ #!/usr/bin/python from monitor.reboot import * +import time def main(): logger.setLevel(logging.DEBUG) @@ -33,5 +34,5 @@ def main(): if __name__ == '__main__': main() f = open("/tmp/rebootlog", 'a') - f.write("reboot %s\n" % sys.argv) + f.write("reboot %s %s\n" % (time.time(), " ".join(sys.argv[1:]))) f.close() -- 2.43.0