diff options
author | Kevin P. Fleming <kpfleming@digium.com> | 2005-04-29 15:32:44 +0000 |
---|---|---|
committer | Kevin P. Fleming <kpfleming@digium.com> | 2005-04-29 15:32:44 +0000 |
commit | ae90c1a014f6598058b4d527570a8b384b40c06c (patch) | |
tree | 99da0f9f749f6cf6dc1527a6230d99a94f440b6d | |
parent | 57e4310265d6ecd10d83a03354f0e76f46fed82e (diff) |
make write() failures on Zap channels more prominent than 'debug' messages (bug #4107)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@5531 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index 526f6bbd2..09c7b1df7 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -4391,8 +4391,7 @@ static int my_zt_write(struct zt_pvt *p, unsigned char *buf, int len, int index, size = (linear ? READ_SIZE * 2 : READ_SIZE); res = write(fd, buf, size); if (res != size) { - if (option_debug) - ast_log(LOG_DEBUG, "Write returned %d (%s) on channel %d\n", res, strerror(errno), p->channel); + ast_log(LOG_WARNING, "Write returned %d (%s) on channel %d - audio may have been lost\n", res, strerror(errno), p->channel); return sent; } len -= size; |