The repo looks fine, so that's good.
I must have missed that somehow. Yes, I mean the names in quotes eg: "Minster Music Software" and "Minster Bells Software". Either I would standardise these, or save the name in config.py (as say CONFIG.loggername) and have sockettools.py read it when it loads. However, that makes the order that modules are imported potentially problematic so I would just use the same logger name for both programs - they are part of the same system, after all.
I see you've already done that while I was typing this out
Response to the sockettools logging query:
You should get a line that corresponds to:
Code: Select all
logger.info("Sockets._create_and_connect(): ("+self.name+"): Done!")
In your log. If you get nothing from sockettools.py, it is likely because the logger name isn't set correctly there when it's getting settings for its own logger. Did you also set the correct logger name in the logging.getLogger() calls at the top of sockettools.py?
Response to the socket name query:
Looks like in your code you're supplying the same string ("Music Pi Socket") in both programs for the same. If you set the third argument to something else then that will change the name of the socket in the logging messages.