wip
This commit is contained in:
parent
d335e74c81
commit
6ac0a9ef9d
|
@ -332,6 +332,8 @@ func ShowMetrics(hubItem *cwhub.Item) {
|
||||||
}
|
}
|
||||||
ShowMetrics(hubItem)
|
ShowMetrics(hubItem)
|
||||||
}
|
}
|
||||||
|
case cwhub.WAF_RULES:
|
||||||
|
log.Fatalf("FIXME: not implemented yet")
|
||||||
default:
|
default:
|
||||||
log.Errorf("item of type '%s' is unknown", hubItem.Type)
|
log.Errorf("item of type '%s' is unknown", hubItem.Type)
|
||||||
}
|
}
|
||||||
|
|
|
@ -90,8 +90,11 @@ func parser_visit(path string, f os.DirEntry, err error) error {
|
||||||
} else if stage == COLLECTIONS {
|
} else if stage == COLLECTIONS {
|
||||||
ftype = COLLECTIONS
|
ftype = COLLECTIONS
|
||||||
stage = ""
|
stage = ""
|
||||||
|
} else if stage == WAF_RULES {
|
||||||
|
ftype = WAF_RULES
|
||||||
|
stage = ""
|
||||||
} else if ftype != PARSERS && ftype != PARSERS_OVFLW /*its a PARSER / PARSER_OVFLW with a stage */ {
|
} else if ftype != PARSERS && ftype != PARSERS_OVFLW /*its a PARSER / PARSER_OVFLW with a stage */ {
|
||||||
return fmt.Errorf("unknown configuration type for file '%s'", path)
|
return fmt.Errorf("unknown configuration type %s for file '%s'", ftype, path)
|
||||||
}
|
}
|
||||||
|
|
||||||
log.Tracef("CORRECTED [%s] by [%s] in stage [%s] of type [%s]", fname, fauthor, stage, ftype)
|
log.Tracef("CORRECTED [%s] by [%s] in stage [%s] of type [%s]", fname, fauthor, stage, ftype)
|
||||||
|
|
Loading…
Reference in a new issue