]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4871: reduce logging a bit
authorRaymond Chandler <intralanman@gmail.com>
Fri, 24 May 2013 00:51:25 +0000 (20:51 -0400)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 24 May 2013 13:34:44 +0000 (08:34 -0500)
src/switch_xml.c

index d59ae1fe5cfc0542342f158c335b9ade3d462d15..e17f16bc4fb15ca0f26f9c0040a4d21e8a77876c 100644 (file)
@@ -2009,12 +2009,13 @@ SWITCH_DECLARE(switch_status_t) switch_xml_locate_user_merged(const char *key, c
                        switch_time_t expires = 0;
                        switch_time_t time_now = 0;
 
-                       switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "caching lookup for user %s@%s\n", user_name, domain_name);
                        if (switch_is_number(cacheable)) {
                                int cache_ms = atol(cacheable);
-                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "caching lookup for %d milliseconds\n", cache_ms);
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "caching lookup for user %s@%s for %d milliseconds\n", user_name, domain_name, cache_ms);
                                time_now = switch_micro_time_now();
                                expires = time_now + (cache_ms * 1000);
+                       } else {
+                               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "caching lookup for user %s@%s indefinitely\n", user_name, domain_name);
                        }
                        switch_xml_user_cache(key, user_name, domain_name, x_user_dup, expires);
                }