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

PokemonGo-Bot/issues#3366: use self.logger.warning instead of log.logger #3369

Closed
wants to merge 1 commit into from

Conversation

sandbochs
Copy link

@sandbochs sandbochs commented Aug 10, 2016

Short Description:

MoveToMap Task is using the incorrect function to log warnings. I've updated to use self.logger.warning included in BaseTask.

Fixes (provide links to github issues if you can):

Closes #3366

@@ -176,7 +176,7 @@ def update_map_location(self):
except ValueError:
err = 'Map location data was not valid'
self._emit_failure(err)
return log.logger(err, 'red')
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log.logger isn't even a thing...

@maestroi
Copy link
Contributor

log.logger is removed?

@sandbochs
Copy link
Author

@maestroi are you thinking of logger.log?

@sandbochs
Copy link
Author

feedback on this anyone? @douglascamata

@douglascamata
Copy link
Member

It should use the new event system and send as little events as possible. logger.log is deprecated and should not be used inside tasks.

@k4n30
Copy link
Contributor

k4n30 commented Aug 14, 2016

@sandbochs How do you want to proceed?

@solderzzc
Copy link
Contributor

Outdate, need close. Thanks for PR.

@solderzzc solderzzc closed this Aug 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants