ucd-cws / arcpy_metadata

Python metadata editing classes for ArcGIS feature classes
93 stars 34 forks source link

suppress messages to console #30

Closed dejames52 closed 7 years ago

dejames52 commented 7 years ago

I would like to see an enhancement that would allow for suppression of the messages to the console for use of this module in a scripting environment. I have been able to control it by redirecting sys.stdout, but it would be a nice feature to have added to the MetadataEditor module as a flag.

thomas-maschler commented 7 years ago

with v0.5 you can now change log level when creating your editor. log levels higher than info (warning, error, critical) should not give and output


import arcpy_metadata as md
meta = md.MetadataEditor(r"path/to/my/dataset", loglevel="WARNING")