-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
85 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import logging | ||
from .paths import log_file_path | ||
|
||
|
||
def configure_logger(): | ||
root_logger = logging.getLogger() | ||
root_logger.setLevel(logging.INFO) | ||
|
||
file_handler = logging.FileHandler(log_file_path()) | ||
|
||
# Create console handler with a higher log level | ||
console_handler = logging.StreamHandler() | ||
console_handler.setLevel(logging.WARNING) | ||
|
||
# Create formatter and add it to the handlers | ||
formatter = logging.Formatter('%(asctime)s %(module)s.%(funcName)s %(levelname)s - %(message)s', | ||
datefmt='%Y-%m-%d %H:%M:%S') | ||
file_handler.setFormatter(formatter) | ||
console_handler.setFormatter(formatter) | ||
console_handler.setLevel(logging.INFO) | ||
console_handler.setFormatter( | ||
logging.Formatter( | ||
'%(asctime)s %(module)s.%(funcName)s %(levelname)s - %(message)s', | ||
datefmt='%Y-%m-%d %H:%M:%S', | ||
) | ||
) | ||
|
||
# Add the handlers to the logger | ||
root_logger.addHandler(file_handler) | ||
root_logger.addHandler(console_handler) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
python_telegram_bot==11.1.0 | ||
python_telegram_bot==13.15 | ||
boolean.py==3.6 | ||
ruamel_yaml~=0.15 | ||
sphinx==1.7.9 | ||
ruamel.yaml~=0.17 | ||
sphinx~=5.3.0 | ||
sphinx_rtd_theme==0.4.2 | ||
flaky==3.5.3 | ||
invoke==1.2.0 | ||
pytype==2019.9.6 | ||
pylint==2.3.1 | ||
flake8==3.7.8 | ||
pytest==5.1.2 | ||
wheel==0.37.1 | ||
flaky~=3.7.0 | ||
invoke~=1.7.3 | ||
pytype~=2022.12.15 | ||
pylint~=2.15.9 | ||
flake8~=6.0.0 | ||
pytest~=7.2.0 | ||
wheel==0.37.1 | ||
twine~=4.0.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
[flake8] | ||
max-line-length=100 | ||
ignore=E501 # Ignoring "E501 line too long" since pylint checks it | ||
ignore= | ||
# Ignoring "E501 line too long" since pylint checks it | ||
E501, | ||
|
||
[pytype] | ||
disable=wrong-keyword-args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.