]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-11810 [mod_httapi] fix compile error
authorChris Rienzo <chris@signalwire.com>
Thu, 25 Apr 2019 19:26:12 +0000 (19:26 +0000)
committerAndrey Volk <andywolk@gmail.com>
Wed, 17 Jul 2019 19:28:51 +0000 (23:28 +0400)
src/mod/applications/mod_httapi/mod_httapi.c

index c4e8a70c0b0dcd121a51afa7184fc62d90b9830e..3e28bd16ef4099f536c22322e245a5af65378a55 100644 (file)
@@ -2473,7 +2473,7 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char
 
        if (!(client = client_create(NULL, profile_name, NULL))) {
                if (err_msg) {
-                       *err_msg = "httapi profile configuration not found"
+                       *err_msg = "httapi profile configuration not found";
                }
                return SWITCH_STATUS_FALSE;
        }
@@ -2652,7 +2652,7 @@ static switch_status_t fetch_cache_data(http_file_context_t *context, const char
                if (err_msg) {
                        *err_msg = "response code != 200";
                }
-               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "caching: url:%s to %s failed with HTTP response code %s\n", url, code);
+               switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "caching: url:%s to %s failed with HTTP response code %d\n", url, save_path, (int)code);
                status = SWITCH_STATUS_FALSE;
                break;
        }