Fix default logger
Closed this issue · 4 comments
inoryy commented
Current default is essentially /dev/null
which is probably not the expected behavior for people trying to run reaver from inside their own codebase.
GabrielZH commented
So is this the cause of the AttributeError: 'AdvantageActorCriticAgent' object has no attribute 'logger' when trying to run a quickstart currently?
inoryy commented
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.
GabrielZH commented
Thank you so much!
inoryy commented
Enabled StreamLogger
by default with sensible configs in 2.1.5
.