aboutsummaryrefslogtreecommitdiff
path: root/src/directive.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org>2019-07-22 14:53:37 +0300
committerSergey Poznyakoff <gray@gnu.org>2019-07-22 14:53:37 +0300
commitb369ed6ad26c07d3aec65a1bf0910c0d828c400f (patch)
tree525b13a5bbda244cbec3fe10c25c47aa2975e2a5 /src/directive.c
parent0917d1276103d9cc893e8ac091e9e63c5e6182f8 (diff)
downloadwydawca-b369ed6ad26c07d3aec65a1bf0910c0d828c400f.tar.gz
wydawca-b369ed6ad26c07d3aec65a1bf0910c0d828c400f.tar.bz2
Finish mod_logstat implementation. Document it.
* doc/wydawca.texi: Document mod_logstat. * include/wydawca/wydawca.h (wy_ev_statistics): Rename to wy_ev_finish. All uses changed. (wydawca_stat): New enum (from src/wydawca.h) (WY_STAT_MASK,WY_STAT_MASK_NONE) (WY_STAT_MASK_ALL): New macros. All uses changed. * modules/logstat/mod_logstat.c (stat_mask): Default to WY_STAT_MASK_ALL. (wy_notify): Provide default output.
Diffstat (limited to 'src/directive.c')
-rw-r--r--src/directive.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/directive.c b/src/directive.c
index 5dd1724..8ce1ca2 100644
--- a/src/directive.c
+++ b/src/directive.c
@@ -559,7 +559,7 @@ external_check(struct wy_triplet *trp)
free(file);
if (rc) {
- UPDATE_STATS(STAT_CHECK_FAIL);
+ UPDATE_STATS(WY_STAT_CHECK_FAIL);
notify(spool->notification, trp, wy_ev_check_fail);
}
@@ -599,7 +599,7 @@ process_directives(struct wy_triplet *trp)
const struct spool *spool;
ASGN_SPOOL(spool, trp, return 1);
- UPDATE_STATS(STAT_COMPLETE_TRIPLETS);
+ UPDATE_STATS(WY_STAT_COMPLETE_TRIPLETS);
timer_start("triplet");
report_init();
for (n = directive_first(trp, &key, &val); n;
@@ -671,7 +671,7 @@ process_directives(struct wy_triplet *trp)
trp->file[file_directive].name, strerror(errno));
}
- UPDATE_STATS(STAT_TRIPLET_SUCCESS);
+ UPDATE_STATS(WY_STAT_TRIPLET_SUCCESS);
report_finish();
timer_stop("triplet");
notify(spool->notification, trp, wy_ev_success);

Return to:

Send suggestions and report system problems to the System administrator.