diff options
author | Jonas Chevalier <zimbatm@zimbatm.com> | 2023-03-02 16:17:20 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-02 16:17:20 +0100 |
commit | 72e1e230517b1e774d2db97cf9d4750e31ebcaa3 (patch) | |
tree | 018fed8b647710d0c4473b4614a5f945764e10c4 /src/libutil | |
parent | 25300c0ecdedcd8720b996b41e78dfe1037bfcff (diff) |
Update src/libutil/util.cc
Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/util.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index 5377f093b..c8965baa8 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -58,9 +58,7 @@ std::optional<std::string> getEnvNonEmpty(const std::string & key) { auto value = getEnv(key); if (value == "") { // TODO: determine whether this should be a warning or an error. - logWarning({ - .msg = hintfmt("ignoring the '%1%' env variable, its value has been set to \"\"", key) - }); + warn("ignoring the '%1%' env variable, its value has been set to \"\"", key); return std::nullopt; } else { return value; |