From 526a0081a0f247c6e4ac1908c0e36ef3787c67d0 Mon Sep 17 00:00:00 2001 From: Sean Bright Date: Tue, 2 May 2017 12:34:24 -0400 Subject: cleanup: Change severity of fread short-read warning Many sound files don't have a full frame's worth of data at EOF, so the warning messages were a bit too noisy. So we demote them to debug messages. Change-Id: I6b617467d687658adca39170a81797a11cc766f6 --- formats/format_siren7.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'formats/format_siren7.c') diff --git a/formats/format_siren7.c b/formats/format_siren7.c index c7856b2a7..87e1372b3 100644 --- a/formats/format_siren7.c +++ b/formats/format_siren7.c @@ -49,9 +49,9 @@ static struct ast_frame *siren7read(struct ast_filestream *s, int *whennext) if ((res = fread(s->fr.data.ptr, 1, s->fr.datalen, s->f)) != s->fr.datalen) { if (feof(s->f)) { if (res) { - ast_log(LOG_WARNING, "Incomplete frame data at end of %s file " - "(expected %d bytes, read %d)\n", - ast_format_get_name(s->fr.subclass.format), s->fr.datalen, res); + ast_debug(3, "Incomplete frame data at end of %s file " + "(expected %d bytes, read %d)\n", + ast_format_get_name(s->fr.subclass.format), s->fr.datalen, res); } } else { ast_log(LOG_ERROR, "Error while reading %s file: %s\n", -- cgit v1.2.3