diff options
-rw-r--r-- | src/cache.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cache.c b/src/cache.c index 945be07..09b6dbf 100644 --- a/src/cache.c +++ b/src/cache.c @@ -1642,11 +1642,11 @@ void log_query(unsigned int flags, char *name, struct all_addr *addr, char *arg) if (option_bool(OPT_EXTRALOG)) { - prettyprint_addr(daemon->log_source_addr, daemon->addrbuff2); + int port = prettyprint_addr(daemon->log_source_addr, daemon->addrbuff2); if (flags & F_NOEXTRA) - my_syslog(LOG_INFO, "* %s %s %s %s %s", daemon->addrbuff2, source, name, verb, dest); + my_syslog(LOG_INFO, "* %s/%u %s %s %s %s", daemon->addrbuff2, port, source, name, verb, dest); else - my_syslog(LOG_INFO, "%u %s %s %s %s %s", daemon->log_display_id, daemon->addrbuff2, source, name, verb, dest); + my_syslog(LOG_INFO, "%u %s/%u %s %s %s %s", daemon->log_display_id, daemon->addrbuff2, port, source, name, verb, dest); } else my_syslog(LOG_INFO, "%s %s %s %s", source, name, verb, dest); |