[svn-commits] mjordan: branch mjordan/1.8_instrumented r369698 - /team/mjordan/1.8_instrume...
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Fri Jul 6 08:58:43 CDT 2012
Author: mjordan
Date: Fri Jul 6 08:58:41 2012
New Revision: 369698
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=369698
Log:
We aren't getting the log messages when this stuff fails, so dump to stdout
Modified:
team/mjordan/1.8_instrumented/main/asterisk.c
team/mjordan/1.8_instrumented/main/logger.c
Modified: team/mjordan/1.8_instrumented/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/1.8_instrumented/main/asterisk.c?view=diff&rev=369698&r1=369697&r2=369698
==============================================================================
--- team/mjordan/1.8_instrumented/main/asterisk.c (original)
+++ team/mjordan/1.8_instrumented/main/asterisk.c Fri Jul 6 08:58:41 2012
@@ -1290,6 +1290,7 @@
if (fds[0].revents) {
int cmds_read, bytes_read;
if ((bytes_read = read_credentials(con->fd, start_read, end_buf - start_read, con)) < 1) {
+ printf("Failed to read credentials\n");
break;
}
/* XXX This will only work if it is the first command, and I'm not sure fixing it is worth the effort. */
@@ -1389,6 +1390,7 @@
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, consoles[x].p)) {
ast_log(LOG_ERROR, "Unable to create pipe: %s\n", strerror(errno));
consoles[x].fd = -1;
+ printf("Server failed to create pipe\n");
fdprint(s, "Server failed to create pipe\n");
close(s);
break;
Modified: team/mjordan/1.8_instrumented/main/logger.c
URL: http://svnview.digium.com/svn/asterisk/team/mjordan/1.8_instrumented/main/logger.c?view=diff&rev=369698&r1=369697&r2=369698
==============================================================================
--- team/mjordan/1.8_instrumented/main/logger.c (original)
+++ team/mjordan/1.8_instrumented/main/logger.c Fri Jul 6 08:58:41 2012
@@ -1198,6 +1198,10 @@
if (!(buf = ast_str_thread_get(&log_buf, LOG_BUF_INIT_SIZE)))
return;
+ va_start(ap, fmt);
+ ast_str_set_va(&buf, BUFSIZ, fmt, ap);
+ va_end(ap);
+ printf(ast_str_buffer(buf));
if (level != __LOG_VERBOSE && AST_RWLIST_EMPTY(&logchannels)) {
/*
* we don't have the logger chain configured yet,
More information about the svn-commits
mailing list