captainkirkby / Gears

Set of packages used to measure a mechanical clock.
1 stars 1 forks source link

Logging Problems #15

Closed captainkirkby closed 9 years ago

captainkirkby commented 10 years ago

We are now using Winston to do logging to a file and the console. However, the file logging is sometimes incomplete...

Looking at the stdout log in /var/log/upstart/ticktocklogger.log, we can see an error is thrown and we see the message with it, that the GPS timestamping is out of sync because a packet was dropped. (See issue #14 )

screenshot

However, in the file ticktock.log, running grep GPS ticktock.log returns nothing. Neither the winston.error log or the actual stack trace of the error. This makes it hard to detect errors using the winston log, which we are trying to transition to.

captainkirkby commented 10 years ago

This is the reason sometimes when you log on to the web server to see live sensor data or live disciplining stats the graph is under two minutes wide.

captainkirkby commented 9 years ago

I believe this was fixed in this commit