You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm updating my Ougai version from (1.8.2 to 1.8.5 or 2.0.0), I have Ougai in my Gemfile. Trying to load my application it breaks complaining that amazing_print isn't available. We added awesome_print to our Gemfile back in the days to make ougai work. Now we are adding amazing_print to solve the issue again.
My class looks like:
class FooReadable < Ougai::Formatters::Readable
...
end
I see that in your gemspec you require amazing_print just in the test group.. isn't that a problem? Shouldn't it be loaded in all groups?
The text was updated successfully, but these errors were encountered:
When your application runs in the production environment, you expect the logs as JSON, so amazing_print is not necessary.
For example, in Rails, for applying readable logger to config.logger in development and test environments, amazing_print must be defined in their gem groups.
Hey @tilfin, thank you for your reply. Indeed my first try was to add the amazing_print just to the development, test groups and it worked for me, in development and test mode. I will investigate it further, thank you 👍
Hi,
I'm updating my Ougai version from (1.8.2 to 1.8.5 or 2.0.0), I have Ougai in my
Gemfile
. Trying to load my application it breaks complaining thatamazing_print
isn't available. We addedawesome_print
to our Gemfile back in the days to makeougai
work. Now we are addingamazing_print
to solve the issue again.My class looks like:
I see that in your
gemspec
you requireamazing_print
just in the test group.. isn't that a problem? Shouldn't it be loaded in all groups?The text was updated successfully, but these errors were encountered: