Default handler for loggers
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadGraph5_aMC@NLO |
Fix Released
|
Low
|
Unassigned |
Bug Description
For some newer gridpacks, when running people encounter this error:
No handlers could be found for logger "madevent.cards"
That seems to come from madevent/
logging.
before the first call to logging.getLogger solves the problem, and the Python manual indeed says that it's a good idea to configure the loggers appropriately before using them.
Unfortunately, I've not found the magic trick -- it seems as though some users encounter this error and others do not, and I haven't identified a consistent issue for the ones that do encounter the error. The solution seems harmless enough, though, so I'd suggest adding such a configuration call somewhere in Madgraph (even in the top level scripts if you wish).
Thanks,
Zach
Changed in mg5amcnlo: | |
status: | Confirmed → Fix Committed |
Changed in mg5amcnlo: | |
status: | Fix Committed → Fix Released |
Hi,
I guess that the issue is that such user are using a way to access the code which is not one of the "official" entry for the code (i.e. the run is not executed via a script in ./bin)
So adding this in top level madgraph will not help (and putting it within banner.py is not a good idea).
So the real question is what is the python script that is really run at that time.
The typical reason why a script outside of ./bin is executed is to run something in multi-core mode.
So could this be related to link to re-weighting or to some other post-processing mode?
Cheers,
Olivier