rdeepak2002 / reddit-place-script-2022

Script to draw an image onto r/place (https://www.reddit.com/r/place/)
909 stars 347 forks source link

Increase the use of log levels and include usernames. #376

Closed bjb28 closed 2 years ago

bjb28 commented 2 years ago

This is from a previous PR that fell out due to extensive rebasing. The idea is to add the work's name to several logs and change the below log levels. By doing these changes it makes it easier to run logging level SUCCESS to see that the script is working without all of the INFO logs.

The log output with names will include the username following the threat number before the colon.

YYYY-MM-DD HH:MM:SS.mmm | SUCCESS | main:set_pixel_and_check_ratelimit:176 - Thread #4 - WORKNAME: Succeeded placing pixel

Changed log level around the following lines:

Line 116: Loading image goes from info to success Line 125: Attempting to place from info to warning Line 175: Succeeded placing pixel from info to success Line 448: Bad credentials form info to critical

These lines are probably way off following all the PRs so I will create a PR based on this once main is functioning.