PokemonGo-Bot icon indicating copy to clipboard operation
PokemonGo-Bot copied to clipboard

[DEV] MoveToMapPokemon worker still uses logger.log

Open BobbyWibowo opened this issue 10 years ago • 9 comments

Expected Behavior

Uses the new events thingy.

Actual Behavior

Uses logger.log which cause lots of 'deprecated feature' messages.

Steps to Reproduce

None.

Other Information

OS: Win 10 Git Commit: d5bb09fd758e779b8eee859d8374f0d198e58abb Python Version: 2.7.10

BobbyWibowo avatar Aug 07 '16 12:08 BobbyWibowo

Actually I'm not sure whether master branch is already using the new events thingy. I'm on dev.

BobbyWibowo avatar Aug 07 '16 12:08 BobbyWibowo

Today we merged dev to master, so it should not happen. What is the output of git status

brantje avatar Aug 07 '16 12:08 brantje

On branch dev
Your branch is up-to-date with 'origin/dev'.

BobbyWibowo avatar Aug 07 '16 13:08 BobbyWibowo

I'm on Dev branch and got the same warning.

zetasq avatar Aug 07 '16 13:08 zetasq

You can clearly see that it's still using logger.log here: https://github.com/PokemonGoF/PokemonGo-Bot/blob/dev/pokemongo_bot/cell_workers/move_to_map_pokemon.py While everything else had begun using the new events thingy.

BobbyWibowo avatar Aug 07 '16 13:08 BobbyWibowo

I've seen this too, getting lots of deprecation warnings when using that task

beldar avatar Aug 07 '16 14:08 beldar

You can get around this temporarily by going into \PokemonGo-Bot\pokemongo_bot\logger.py and removing the last line of the file: "warnings.warn(message, DeprecationWarning)"

jordahlk avatar Aug 07 '16 14:08 jordahlk

Yep, did that, must be changed tho, not the ideal solution

beldar avatar Aug 07 '16 14:08 beldar

On my local copies, I made new events and changed all instances of logger.log in that worker to use the new events. But honestly, I had no idea whether the naming I used for the events were as intended by the developers here, so I didn't make any PR.

BobbyWibowo avatar Aug 07 '16 14:08 BobbyWibowo