From: Vsevolod Stakhov Date: Fri, 23 Jul 2021 16:36:31 +0000 (+0100) Subject: [Minor] Reduce C++ stuff demangling in logging X-Git-Tag: 3.0~104 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2caca45cf8ae1976b54d6665895ed76a42d01661;p=rspamd.git [Minor] Reduce C++ stuff demangling in logging --- diff --git a/src/libserver/css/css.hxx b/src/libserver/css/css.hxx index 21114cc86..2d1ece757 100644 --- a/src/libserver/css/css.hxx +++ b/src/libserver/css/css.hxx @@ -36,11 +36,11 @@ extern unsigned int rspamd_css_log_id; #define msg_debug_css(...) rspamd_conditional_debug_fast (NULL, NULL, \ rspamd_css_log_id, "css", pool->tag.uid, \ - G_STRFUNC, \ + __FUNCTION__, \ __VA_ARGS__) #define msg_err_css(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \ "css", pool->tag.uid, \ - G_STRFUNC, \ + __FUNCTION__, \ __VA_ARGS__) class css_style_sheet { diff --git a/src/libserver/html/html.cxx b/src/libserver/html/html.cxx index 0cf950531..30607a8da 100644 --- a/src/libserver/html/html.cxx +++ b/src/libserver/html/html.cxx @@ -66,7 +66,7 @@ auto html_components_map = frozen::make_unordered_maptag.uid, \ - G_STRFUNC, \ + __FUNCTION__, \ __VA_ARGS__) INIT_LOG_MODULE(html)