use logger not fprintf
Add log_debug to show opened socket in collection