detect: suppress output

pull/1980/head
Victor Julien 9 years ago
parent 725d6c3739
commit 5b1d75f0bd

@ -128,10 +128,14 @@ void DetectMpmInitializeAppMpms(DetectEngineCtx *de_ctx)
shared = confshared;
if (shared == 0) {
SCLogInfo("using unique mpm ctx' for %s", am->name);
if (!(de_ctx->flags & DE_QUIET)) {
SCLogInfo("using unique mpm ctx' for %s", am->name);
}
am->sgh_mpm_context = MPM_CTX_FACTORY_UNIQUE_CONTEXT;
} else {
SCLogInfo("using shared mpm ctx' for %s", am->name);
if (!(de_ctx->flags & DE_QUIET)) {
SCLogInfo("using shared mpm ctx' for %s", am->name);
}
am->sgh_mpm_context = MpmFactoryRegisterMpmCtxProfile(de_ctx, am->name);
}
@ -821,16 +825,18 @@ void MpmStoreReportStats(const DetectEngineCtx *de_ctx)
}
}
uint32_t x;
for (x = 0; x < MPMB_MAX; x++) {
SCLogInfo("Builtin MPM \"%s\": %u", builtin_mpms[x], stats[x]);
}
for (x = 0; x < APP_MPMS_MAX; x++) {
if (appstats[x] == 0)
continue;
const char *name = app_mpms[x].name;
char *direction = app_mpms[x].direction == SIG_FLAG_TOSERVER ? "toserver" : "toclient";
SCLogInfo("AppLayer MPM \"%s %s\": %u", direction, name, appstats[x]);
if (!(de_ctx->flags & DE_QUIET)) {
uint32_t x;
for (x = 0; x < MPMB_MAX; x++) {
SCLogInfo("Builtin MPM \"%s\": %u", builtin_mpms[x], stats[x]);
}
for (x = 0; x < APP_MPMS_MAX; x++) {
if (appstats[x] == 0)
continue;
const char *name = app_mpms[x].name;
char *direction = app_mpms[x].direction == SIG_FLAG_TOSERVER ? "toserver" : "toclient";
SCLogInfo("AppLayer MPM \"%s %s\": %u", direction, name, appstats[x]);
}
}
}

Loading…
Cancel
Save