We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 67aa591 + 31b44f7 commit 2c588c8Copy full SHA for 2c588c8
main.py
@@ -44,6 +44,11 @@
44
log_file_handler.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(message)s'))
45
logging.getLogger('').addHandler(log_file_handler)
46
47
+console_handler = logging.StreamHandler()
48
+console_handler.setLevel(logging.ERROR) # log only ERROR and above to console
49
+console_handler.setFormatter(logging.Formatter('%(levelname)s: %(message)s'))
50
+logging.getLogger('').addHandler(console_handler)
51
+
52
DEFAULT_MAX_TURNS = 50
53
RATE_LIMIT_BACKOFF = 5
54
MAX_RATE_LIMIT_BACKOFF = 120
0 commit comments