Changing from a custom logError function to go's built in logger