#define G_DISPATCHER_ERROR dispatcher_error_quark ()
#define debug_ip(...) rspamd_conditional_debug (rspamd_main->logger, \
NULL, \
- __FUNCTION__, \
+ G_STRFUNC, \
__VA_ARGS__)
static void dispatcher_cb (gint fd, short what, void *arg);
}
/* It is safe to use temporary buffer here as it is not static */
file_log_function (NULL,
- __FUNCTION__,
+ G_STRFUNC,
rspamd_log->cfg->log_level,
tmpbuf,
TRUE,
arg);
}
file_log_function (log_domain,
- __FUNCTION__,
+ G_STRFUNC,
log_level,
tmpbuf,
forced,
rspamd_log->saved_function = NULL;
}
file_log_function (log_domain,
- __FUNCTION__,
+ G_STRFUNC,
log_level,
tmpbuf,
forced,
if (level == G_LOG_LEVEL_DEBUG) {
rspamd_conditional_debug (rspamd_main->logger,
NULL,
- __FUNCTION__,
+ G_STRFUNC,
"%s",
msg);
}
else {
rspamd_common_log_function (rspamd_main->logger,
level,
- __FUNCTION__,
+ G_STRFUNC,
"%s",
msg);
}
/* Parse reverse reply and start resolve of this ip */
if (reply->code != RDNS_RC_NOERROR) {
rspamd_conditional_debug (rspamd_main->logger,
- NULL, __FUNCTION__, "DNS error: %s",
+ NULL, G_STRFUNC, "DNS error: %s",
rdns_strerror (reply->code));
if (reply->code == RDNS_RC_NXDOMAIN) {
case SMTP_PROXY_STATE_RESOLVE_NORMAL:
if (reply->code != RDNS_RC_NOERROR) {
rspamd_conditional_debug (rspamd_main->logger,
- NULL, __FUNCTION__, "DNS error: %s",
+ NULL, G_STRFUNC, "DNS error: %s",
rdns_strerror (reply->code));
if (reply->code == RDNS_RC_NXDOMAIN) {