]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: add log_get_max_level check optimization in log_unit_full
authorLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 21 Apr 2020 16:23:21 +0000 (17:23 +0100)
committerLuca Boccassi <luca.boccassi@microsoft.com>
Tue, 21 Apr 2020 17:05:24 +0000 (18:05 +0100)
commitc5bc2c01eef4d3defb58245960065a063f5f75cf
treef27f0e8fd0753be9acbb5026c2ac444a6ce7a3af
parent33b58dfb41a0c0db8110f1fc6dd0fc54e0d9cd4a
core: add log_get_max_level check optimization in log_unit_full

Just as log_full already does, check if the log level would result in
logging immediately in the macro in order to avoid doing
unnecessary work that adds up in hot spots.
src/core/unit.h