From e8cfe14f955ab85918cf75ea075d332a24b7720e Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Thu, 29 Jul 2010 16:26:47 -0700 Subject: timing syslog entries on commit hooks --- src/commit2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/commit2.c') diff --git a/src/commit2.c b/src/commit2.c index e3cc3df..e228523 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -373,9 +373,11 @@ main(int argc, char** argv) strcmp(dirp->d_name, "..") != 0) { char buf[MAX_LENGTH_DIR_PATH*sizeof(char)]; sprintf(buf,"%s/%s",COMMIT_HOOK_DIR,dirp->d_name); + syslog(LOG_DEBUG,"Starting commit hook: %s",buf); if (system(buf) == -1) { - syslog(LOG_DEBUG,"commit::main(), error on call to hook: %s", buf); + syslog(LOG_WARNING,"Error on call to hook: %s", buf); } + syslog(LOG_DEBUG,"Finished with commit hook: %s",buf); } } unsetenv(ENV_COMMIT_STATUS); -- cgit v1.2.3 From 61101aa02584ccaa574fc99c0dd9366a6819b31b Mon Sep 17 00:00:00 2001 From: An-Cheng Huang Date: Mon, 9 Aug 2010 17:20:21 -0700 Subject: commit needs to flush "progress file" --- src/commit2.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/commit2.c') diff --git a/src/commit2.c b/src/commit2.c index e228523..d45b7c0 100644 --- a/src/commit2.c +++ b/src/commit2.c @@ -311,6 +311,7 @@ main(int argc, char** argv) //now update the changes file update_change_file(fp_changes,nodes_visited_coll); + fflush(fp_changes); ++i; } while ((trans_child_node = (GNode*)g_node_nth_child((GNode*)trans_coll,(guint)i)) != NULL); -- cgit v1.2.3