summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorslioch <slioch@eng-140.vyatta.com>2009-03-09 17:45:28 -0700
committerslioch <slioch@eng-140.vyatta.com>2009-03-09 17:45:28 -0700
commitbd48938b3dc1634c64c6d099ccf5d193d94c4019 (patch)
tree815e83ed41ae6754c10e896e6a3042dc6baf9d36
parenta9e307819cac8b34ec1d61256c35c87710a8ac98 (diff)
downloadvyatta-cfg-bd48938b3dc1634c64c6d099ccf5d193d94c4019.tar.gz
vyatta-cfg-bd48938b3dc1634c64c6d099ccf5d193d94c4019.zip
added action and location of error to syslog on commit. error message string will need to be added later after some reworking of the old node
execution code.
-rw-r--r--src/commit2.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/commit2.c b/src/commit2.c
index 269b06f..e6b63fa 100644
--- a/src/commit2.c
+++ b/src/commit2.c
@@ -1,6 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
+#include <syslog.h>
#include <sys/time.h>
#include <glib-2.0/glib.h>
#include "common/common.h"
@@ -366,6 +367,7 @@ process_func(GNode *node, gpointer data)
}
if (!status) { //EXECUTE_LIST RETURNS FALSE ON FAILURE....
+ syslog(LOG_ERR,"commit error for %s:[%s]\n",ActionNames[result->_action],d->_path);
if (g_display_error_node) {
fprintf(out_stream,"%s:[%s]\n",ActionNames[result->_action],d->_path);
}