Replaced log with golog and added some trace logging