modelsbuilder / ModelsBuilder.Original

The Community Models Builder for Umbraco
MIT License
114 stars 49 forks source link

ModelsBuilder can flood Umbraco log #138

Closed zpqrtbnk closed 7 years ago

zpqrtbnk commented 7 years ago

When running with log4net set to DEBUG level, ModelsBuilder can flood the log eg with its Ensuring models. or RazorBuildProvider.CodeGenerationStarted messages. These are useful for low-level debugging, but some ppl turn debugging on on live websites (to figure out some other issue) and then their log explodes.

zpqrtbnk commented 7 years ago

PR https://github.com/zpqrtbnk/Zbu.ModelsBuilder/pull/139

This adds a new Umbraco.ModelsBuilder.DebugLevel setting that is zero by default, and when it's zero some of the log statements such as the one in the description are skipped. Set to greater than zero to re-enable them.

zpqrtbnk commented 7 years ago

Merged