Move the log so it only gets call when the wrap actually will execute