aboutsummaryrefslogtreecommitdiffstats
path: root/channels/chan_zap.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-29 15:32:44 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2005-04-29 15:32:44 +0000
commit338e11fdc68f913dffcdde510deed8cabb798bd9 (patch)
tree99da0f9f749f6cf6dc1527a6230d99a94f440b6d /channels/chan_zap.c
parentf3c48c84c0cbb176f97bc709d9c277448884c8de (diff)
make write() failures on Zap channels more prominent than 'debug' messages (bug #4107)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5531 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channels/chan_zap.c')
-rwxr-xr-xchannels/chan_zap.c3
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;