Skip to content

Default message level in Python gallery scripts #5

@knoepfel

Description

@knoepfel

This issue has been migrated from https://cdcvs.fnal.gov/redmine/issues/26054 (FNAL account required)
Originally created by @PetrilloAtWork on 2021-07-19 20:10:35


When not initialising MessageFacility explicitly, the verbosity level in gallery is set to DEBUG, which yields messages like

Product created with id: [xxx] from canonical product name: ...

.

Supposing that MessageFacility gets initialised somewhere by gallery, I would like that initialisation to set rather a INFO or WARNING level.

Steps to reproduce:

  1. have an art/ROOT file ready with some data product tag
  2. set up gallery and whatever it takes to correctly read that file
  3. start a Python session:
import ROOT
events = ROOT.gallery.Event(ROOT.std.vector[ROOT.std.string]([ "my/input/file.root" ]))
events.getValidHandle[ROOT.std.vector[ROOT.my.dataProduct]](ROOT.art.InputTag("tag"))

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureAn enhancement to the project

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions