docs: More comments on files
This commit is contained in:
@@ -14,15 +14,19 @@ if __name__ == "__main__":
|
||||
]
|
||||
)
|
||||
|
||||
# Reduce the verbosity of the requests library's logging
|
||||
logging.getLogger("requests").setLevel(logging.WARNING)
|
||||
logging.info("Logging enhanced with request library noise reduction")
|
||||
|
||||
# Start the main runner
|
||||
|
||||
# Create an instance of the CrossFitBooker class
|
||||
booker = CrossFitBooker()
|
||||
|
||||
# Attempt to log in to the CrossFit booking system
|
||||
if not booker.login():
|
||||
# If login fails, log the error and exit the script
|
||||
logging.error("Failed to login - Traceback: %s", traceback.format_exc())
|
||||
exit(1)
|
||||
|
||||
# Start continuous booking loop
|
||||
# Start the continuous booking loop
|
||||
booker.run()
|
||||
logging.info("Script completed")
|
||||
logging.info("Script completed")
|
||||
|
||||
Reference in New Issue
Block a user