added patch file to enable logging