Log code that was run.