Adding some logging code for ofswitch