[Git][NTPsec/ntpsec][master] gps-log: fix fatal typo, add more output when verbose

Gary E. Miller gitlab at mg.gitlab.com
Sat Jan 7 20:43:07 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
1960314f by Gary E. Miller at 2017-01-07T12:42:35-08:00
gps-log: fix fatal typo, add more output when verbose

- - - - -


1 changed file:

- ntpclients/gps-log


Changes:

=====================================
ntpclients/gps-log
=====================================
--- a/ntpclients/gps-log
+++ b/ntpclients/gps-log
@@ -60,7 +60,7 @@ parser.add_argument('-o', '--once',
                     help="log one line, then exit")
 
 parser.add_argument('-w', '--wait',
-                    default=5,
+                    default=[5],
                     dest='wait',
                     help="wait WAIT seconds after each log line, default 5",
                     nargs=1,
@@ -77,6 +77,10 @@ parser.add_argument('-V', '--version',
 
 args = parser.parse_args()
 
+if args.verbose:
+    print("gps-log: arguments:")
+    print(args)
+
 if args.logfile:
     # log to logfile
     try:
@@ -117,6 +121,9 @@ class GpsPoller(threading.Thread):
                                      self.gpsd.satellites_used))
 
 if __name__ == '__main__':
+    if args.verbose:
+        print("gps-log: creating poll thread")
+
     gpsp = GpsPoller()    # create the thread
     try:
         gpsp.start()      # start it up
@@ -159,4 +166,4 @@ if __name__ == '__main__':
     gpsp.join()
 
     if args.verbose:
-        print("gps-log Done -- Exiting.")
+        print("gps-log: Done -- Exiting.")



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1960314f03151ccfa396b4307978c5fbb676fbd9
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170107/352ee412/attachment.html>


More information about the vc mailing list