summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael Larson <slioch@slioch.vyatta.com>2010-07-29 16:26:47 -0700
committerMichael Larson <slioch@slioch.vyatta.com>2010-07-29 16:26:47 -0700
commite8cfe14f955ab85918cf75ea075d332a24b7720e (patch)
treebf3742f9df1e505fb6859a0605517ea0908550b8 /src
parenta56723cbb6424e1d49289efceeb9c251eed324bb (diff)
downloadvyatta-cfg-e8cfe14f955ab85918cf75ea075d332a24b7720e.tar.gz
vyatta-cfg-e8cfe14f955ab85918cf75ea075d332a24b7720e.zip
timing syslog entries on commit hooks
Diffstat (limited to 'src')
-rw-r--r--src/commit2.c4
1 files changed, 3 insertions, 1 deletions
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);