aserafin / grape_logging

Request logging for Grape!
MIT License
147 stars 76 forks source link

Reporters::LoggerReporter should not modify the global logger #76

Open dhruvCW opened 2 years ago

dhruvCW commented 2 years ago

in Reports::LoggerReporter initialization it stores the original reference to the logger that is passed in instead of cloning the object. Thus if a custom formatter is provided as parameter this formatter is also applied to the global logger which is an undesirable behaviour.