Update Log-Injection.rst

Some minor code fixes.