Reverted logging code to use basic logging