Note that if any characters > 127 are in the log, this will crash spectacularly thanks to mochijson2. It should probably take the return value of post_result and then post artifacts separately.