Modify log action so JSON output is consistent

Without this, the output stream includes non-JSON text when running with
--json=true

Signed-off-by: Lewis Marshall <lewis@lmars.net>
Merge pull request #5 from flynn/consistent-json-output

Modify log action so JSON output is consistent