I can't find a reason why we shouldn't try to output messages for other
unit types than .service, .socket, .mount and .swap as well. It's probably
a leftover from before we started logging UNIT= from inside PID 1.
assert(mode < _OUTPUT_MODE_MAX);
assert(unit);
- if (!endswith(unit, ".service") &&
- !endswith(unit, ".socket") &&
- !endswith(unit, ".mount") &&
- !endswith(unit, ".swap"))
- return 0;
-
if (how_many <= 0)
return 0;
assert(mode < _OUTPUT_MODE_MAX);
assert(unit);
- if (!endswith(unit, ".service") &&
- !endswith(unit, ".socket"))
-
- return 0;
-
if (how_many <= 0)
return 0;