[Git][NTPsec/ntpsec][master] Make debugging output line buffered

Hal Murray gitlab at mg.gitlab.com
Fri Dec 16 22:13:20 UTC 2016


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
af18e74a by Hal Murray at 2016-12-16T14:12:33-08:00
Make debugging output line buffered

- - - - -


1 changed file:

- ntpclients/ntpmon


Changes:

=====================================
ntpclients/ntpmon
=====================================
--- a/ntpclients/ntpmon
+++ b/ntpclients/ntpmon
@@ -118,7 +118,7 @@ if __name__ == '__main__':
     try:
         session = ntp.packet.ControlSession()
         if 0: # debugging hacks, UI is $EDITOR
-          session.logfp = open("ntpmon.log", "a")
+          session.logfp = open("ntpmon.log", "a", 1) # 1 => line buffered
           session.debug = 4
           peer_report.logfp = session.logfp
           peer_report.debug = session.debug



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/af18e74a17ab3986ab3b5527c856d3eabaff0297
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161216/ed0bc965/attachment.html>


More information about the vc mailing list