Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The dry-logger raises an exception #80

Open
wrmk opened this issue Nov 24, 2023 · 0 comments
Open

The dry-logger raises an exception #80

wrmk opened this issue Nov 24, 2023 · 0 comments

Comments

@wrmk
Copy link

wrmk commented Nov 24, 2023

Describe the bug

The dry-logger raises an exception while trying to warn about something

To Reproduce

class TestLogger
  extend Dry::Initializer  
  option :array, Types::Strict::Array.default([])  
end

in this example Logger should inform about freezing the default value

The problem could be solved if we update the Logger.new in this line
from Logger.new(output) to Logger.new(stream: output)

Expected behavior

Warning should be visible in the log and no exception should be raised

My environment

  • Affects my production application: did not test on production
  • Ruby version: 3.2.2p53
  • OS: Linux Mint 21.1 Vera \n \l
  • dry-logger (1.0.3)
  • dry-core (1.0.1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant