Removed logs from socket code
Logging is enabled for debug only
Moved the conversion code in filter header file to its own file