Commit fa8b9945ca25ad85a43002349e0b57cc7529ac03

Authored by Christopher Stone
1 parent c0c9a4b1
Exists in master

Began to use logging library

robots/little_john/telemetry/code/monitor/graph_plotter_rewrite.py
... ... @@ -15,12 +15,15 @@ import os
15 15 import platform
16 16 import sys
17 17 import easygui
  18 +import logging
18 19 from serialselect import selectserial
19 20  
20 21 from colours import *
21 22  
22   -datafeed = selectserial()
  23 +logging.basicConfig(level=logging.DEBUG)
  24 +logging.info("Logging system active")
23 25  
  26 +datafeed = selectserial()
24 27  
25 28 if type(datafeed) is str:
26 29 easygui.msgbox("Failed to open serial port:\n" + datafeed, "Fatal error")
... ...