Fixing socket config
Fixed undefined logging
Fixed undefined logging