diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2012-02-14 20:27:16 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2012-02-14 20:27:16 +0000 |
commit | a78b0af5eab65e1567ecd3c9a7151cc4a5030f92 (patch) | |
tree | e72deb318441ebda6d0aea6d84e3bfae8c8c821f /codecs | |
parent | 51b32041d5a065345837eee5ad9add29b23bcd0e (diff) |
Re-commit the verbose branch.
This change permits each verbose destination (consoles, logger) to have its
own concept of what the verbosity level is. The big feature here is that
the logger will now be able to capture a particular verbosity level without
condemning each console to need to suffer that level of verbosity.
Additionally, a stray 'core set verbose' will no longer change what will go
to the log.
Review: https://reviewboard.asterisk.org/r/1599/
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@355413 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'codecs')
-rw-r--r-- | codecs/codec_dahdi.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/codecs/codec_dahdi.c b/codecs/codec_dahdi.c index bca0256e3..1a745a417 100644 --- a/codecs/codec_dahdi.c +++ b/codecs/codec_dahdi.c @@ -176,13 +176,11 @@ static void dahdi_write_frame(struct codec_dahdi_pvt *dahdip, const uint8_t *buf struct pollfd p = {0}; if (!count) return; res = write(dahdip->fd, buffer, count); - if (option_verbose > 10) { - if (-1 == res) { - ast_log(LOG_ERROR, "Failed to write to transcoder: %s\n", strerror(errno)); - } - if (count != res) { - ast_log(LOG_ERROR, "Requested write of %zd bytes, but only wrote %d bytes.\n", count, res); - } + if (-1 == res) { + ast_log(LOG_ERROR, "Failed to write to transcoder: %s\n", strerror(errno)); + } + if (count != res) { + ast_log(LOG_ERROR, "Requested write of %zd bytes, but only wrote %d bytes.\n", count, res); } p.fd = dahdip->fd; p.events = POLLOUT; |