job: change result field for log message about job result RESULT= → JOB_RESULT=
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Sep 2017 16:29:08 +0000 (18:29 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Sep 2017 13:24:55 +0000 (15:24 +0200)
commit646cc98dc81c4d0edbc1b57e7bca0f474b47e270
treecb1cb46e7f34666615746413641c9e8e9593d9f1
parentdba1bd4396b50f8d86f729ac4762a1ef0612d7a8
job: change result field for log message about job result RESULT= → JOB_RESULT=

So, currently, some of the structured log messages we generated based on
jobs carry the result in RESULT=, and others in JOB_RESULT=. Let's
streamline this, as stick to JOB_RESULT= in one place.

This is kind of an API break, but given that currently most software has
to check both fields anyway, I think we can get away with it.

Why unify on JOB_RESULT= rather than RESULT=? Well, we manage different
types of result codes in systemd. Most importanlty besides job results
there are also service results, and we should be explicit in what we
mean here.
src/core/job.c