0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 16:22:35 +01:00

ircd::log: Update the log::mark() argument to use string_view.

This commit is contained in:
Jason Volk 2018-04-20 12:47:49 -07:00
parent 6f90708e46
commit 88f5937559
2 changed files with 5 additions and 5 deletions

View file

@ -32,8 +32,8 @@ namespace ircd::log
void vlog(const facility &, const std::string &name, const char *const &fmt, const va_rtti &ap);
void vlog(const facility &, const char *const &fmt, const va_rtti &ap);
void mark(const facility &, const char *const &msg = nullptr);
void mark(const char *const &msg = nullptr);
void mark(const facility &, const string_view &msg = {});
void mark(const string_view &msg = {});
struct critical;
struct error;

View file

@ -214,13 +214,13 @@ ircd::log::log::log(const std::string &name)
}
ircd::log::log::log(const std::string &name,
const char &snote)
const char &snote)
:log{name}
{
}
void
ircd::log::mark(const char *const &msg)
ircd::log::mark(const string_view &msg)
{
for_each<facility>([&msg]
(const auto &fac)
@ -231,7 +231,7 @@ ircd::log::mark(const char *const &msg)
void
ircd::log::mark(const facility &fac,
const char *const &msg)
const string_view &msg)
{
static const auto name{"*"s};
vlog(fac, name, "%s", msg);