Hi, I'm trying to diagnose a problem. I constructed a water tank monitoring system for our 5 rain water tanks that communicate wireless back to a PC running weewx. The interface to the PC is an FTDI USB serial port. I followed the instructions to add my water level inputs to the weewx system and everything was running just fine for months. The custom service runs a thread to open the serial port and capture raw data via select and readline, that is then passed to the service in a data structure with locking. The data is filtered and scaled when the new archive record is added. The problem is that the thread sometimes exits. I had some syslog messages coming from the thread, and as I added more syslog messages to try to debug the problem, the thread exit problem seemed to get more frequent. I switched to using a file to log messages from the thread, using logger instead of syslog. Now, perhaps coincidentally, the thread has been running happily for a few days when previously it had been crashing often more than once a day.
I just have to wonder about the thread safety of the syslog facility? I'm not very familiar with python, I must admit, so I could be doing something else stupid, but I thought I'd ask the question. -- JS -- You received this message because you are subscribed to the Google Groups "weewx-development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-development/3bdc2d31-a923-4f82-850e-995cf2099bd3o%40googlegroups.com.
