Ok, I opened https://issues.apache.org/jira/browse/STANBOL-269.
I attached 4 patch files that reflect the logging that I changed/added locally as a suggestion. PS: I think we shall also add to the components list in Jira the 'Rules' and 'Refactor (engine)' components. Thanks, David On Wed, Jul 13, 2011 at 10:40 AM, Andrea Giovanni Nuzzolese < [email protected]> wrote: > I David, Enrico, all, > > I agree with the suggestions. > It would be great if you open an issue on jira about that. > > Andrea > > On Jul 12, 2011, at 3:09 PM, Enrico Daga wrote: > > > Hi David, I agree with both below, you can open an issue about it if you > wish. > > > > On 12 July 2011 14:47, David Riccitelli <[email protected]> > wrote: > >> 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 > >> > > > > > > > > -- > > Enrico Daga > > > > -- > > http://www.enridaga.net > > skype: enri-pan > > -- David Riccitelli Interact SpA Via A. Bargoni 78 (scala F) 00153 Roma T +39 06 58318 301 F +39 06 58318 303
