TWSD: Log messages now use logging module