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

Logger level does not being proparated to the 'dexbot.per_worker' #172

Closed
bitphage opened this issue Jun 1, 2018 · 2 comments
Closed

Logger level does not being proparated to the 'dexbot.per_worker' #172

bitphage opened this issue Jun 1, 2018 · 2 comments

Comments

@bitphage
Copy link
Collaborator

bitphage commented Jun 1, 2018

Setting verbosity level via cli not working ./cli.py -v 4 run

To check this add a few lines inside worker:

    def tick(self, d):
        """ ticks come in on every block
        """
        self.log.debug('tick-tack: %s', self.worker_name)
        print(logging.getLogger('dexbot.per_worker').getEffectiveLevel())
        if self.recheck_orders:
            self.check_orders()
            self.recheck_orders = False

You will see the output is '20' which indicates INFO level.

This error happens due to error in logger initialization inside dexbot/ui.py.

bitphage added a commit to bitphage/DEXBot that referenced this issue Jun 1, 2018
@MarkoPaasila
Copy link
Collaborator

Does this affect only output to console/logfile, or also the logic of the bot?

@bitphage
Copy link
Collaborator Author

bitphage commented Jun 2, 2018

Only output is affected.

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

2 participants