inoryy/reaver

Fix default logger

Closed this issue · 4 comments

Current default is essentially /dev/null which is probably not the expected behavior for people trying to run reaver from inside their own codebase.

So is this the cause of the AttributeError: 'AdvantageActorCriticAgent' object has no attribute 'logger' when trying to run a quickstart currently?

Oh, seems I've broken it with some of the recent changes. As a temporary workaround you can manually initialize the /dev/null logger via agent.logger = rvr.utils.Logger(). Alternatively see how the full StreamLogger is initialized here.

Thank you so much!

Enabled StreamLogger by default with sensible configs in 2.1.5.