diff options
Diffstat (limited to 'server/src/log.cppm')
| -rw-r--r-- | server/src/log.cppm | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/server/src/log.cppm b/server/src/log.cppm index 7c42144..97552b6 100644 --- a/server/src/log.cppm +++ b/server/src/log.cppm | |||
| @@ -97,12 +97,12 @@ export class logger | |||
| 97 | { | 97 | { |
| 98 | if (sink_->level() <= lvl) | 98 | if (sink_->level() <= lvl) |
| 99 | sink_->write( | 99 | sink_->write( |
| 100 | sink::tmp_message{ | 100 | sink::tmp_message{ |
| 101 | .lvl = lvl, | 101 | .lvl = lvl, |
| 102 | .component = component_, | 102 | .component = component_, |
| 103 | .txt = std::vformat(fmt, args), | 103 | .txt = std::vformat(fmt, args), |
| 104 | .attrs = attrs_, | 104 | .attrs = attrs_, |
| 105 | }); | 105 | }); |
| 106 | return *this; | 106 | return *this; |
| 107 | } | 107 | } |
| 108 | 108 | ||
| @@ -138,7 +138,7 @@ public: | |||
| 138 | } | 138 | } |
| 139 | 139 | ||
| 140 | [[nodiscard]] auto with(std::string const& k, std::string_view v) const | 140 | [[nodiscard]] auto with(std::string const& k, std::string_view v) const |
| 141 | -> logger | 141 | -> logger |
| 142 | { | 142 | { |
| 143 | return with(k, std::string{v}); | 143 | return with(k, std::string{v}); |
| 144 | } | 144 | } |