From 301bdf47705455282cdaf053a0d367ef6d564c48 Mon Sep 17 00:00:00 2001 From: Andrew Keil Date: Sat, 5 Aug 2023 12:04:21 +1000 Subject: [PATCH] VISYTEL-0005 [core] Reduce log level from ERROR to DEBUG for log messages containing: libpng not installed --- src/switch_core_video.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/switch_core_video.c b/src/switch_core_video.c index dad3181c2a..f2279718f1 100644 --- a/src/switch_core_video.c +++ b/src/switch_core_video.c @@ -3090,25 +3090,25 @@ end: SWITCH_DECLARE(switch_status_t) switch_img_patch_png(switch_image_t *img, int x, int y, const char *file_name) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function is not available, libpng not installed\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "This function is not available, libpng not installed\n"); return SWITCH_STATUS_FALSE; } SWITCH_DECLARE(switch_image_t *) switch_img_read_png(const char* file_name, switch_img_fmt_t img_fmt) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function is not available, libpng not installed\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "This function is not available, libpng not installed\n"); return NULL; } SWITCH_DECLARE(switch_status_t) switch_img_write_png(switch_image_t *img, char* file_name) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function is not available, libpng not installed\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "This function is not available, libpng not installed\n"); return SWITCH_STATUS_FALSE; } SWITCH_DECLARE(switch_status_t) switch_img_data_url_png(switch_image_t *img, char **urlP) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "This function is not available, libpng not installed\n"); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "This function is not available, libpng not installed\n"); return SWITCH_STATUS_FALSE; }