To be more practical, I would add this ln 423 of the RuleStoreImpl.java in
rules/manager:
- log.info( "The rule %s has been added to the ruleset",
rule.getRuleName() );
and make a change in ln 587 of the RefactorEnhancementEngine.java in
engines/refactor:
- ln 587: log.error("Cannot load the recipes.", e);
Still investigating where details about rules failing to load should be.
BR,
David
On Tue, Jul 12, 2011 at 1:30 PM, David Riccitelli <
[email protected]> wrote:
> I'm working with the rules (seo_rules.sem) file. Sometimes rules are
> not loaded for some reason. The log currently does not provide any
> information about a rule not being loaded or also being successfully
> loaded.
>
> The log only provides information about a rule being removed when you
> remove the bundle:
>
> 12.07.2011 13:15:51.781 *INFO* [FelixPackageAdmin]
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
> The rule
> http://kres.iks-project.eu/ontology/meta/variables#dbpropCurrentTeamRule
> has been removed correctly
> 12.07.2011 13:15:51.781 *INFO* [FelixPackageAdmin]
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
> The rule http://kres.iks-project.eu/ontology/meta/variables#dbpropNameRule
> has been removed correctly
> 12.07.2011 13:15:51.781 *INFO* [FelixPackageAdmin]
> org.apache.stanbol.enhancer.engines.refactor.RefactorEnhancementEngine
> The rule
> http://kres.iks-project.eu/ontology/meta/variables#livingPeopleTypeRule
> has been removed correctly
>
>
> I think it could be a nice idea to provide warnings for rule that
> cannot be loaded and infos for rules that have loaded.
>
> What do you think?
>
> Thanks,
> David
>
> --
> David Riccitelli
>
> Interact SpA
> Via A. Bargoni 78 (scala F)
> 00153 Roma
>
> T +39 06 58318 301
> F +39 06 58318 303
>
--
David Riccitelli
Interact SpA
Via A. Bargoni 78 (scala F)
00153 Roma
T +39 06 58318 301
F +39 06 58318 303