Update socketlib.py

Added the logging reference.