Log a bit more information in codeSnippet()

Change-Id: Ifecfd55ed7f6a48f1cfea8182a40e8568dfc4780