Skip to content

Commit

Permalink
правки
Browse files Browse the repository at this point in the history
  • Loading branch information
HamletSargsyan committed Aug 22, 2024
1 parent cefe5e3 commit 2672866
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
"pymongo",
"setex",
"telebot",
"termux",
"translit"
],
}
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Изменено

- Функции действий для игрока (прогулка, работа, и тд) из `base/player.py` перенесены в `base/actions.py`
- Рефакторинг файла `config.py`

## [5.1.0] - 2024-08-16

Expand Down Expand Up @@ -244,7 +245,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Добавлено

- Новый предмет: клевер-удачы 🍀 [#8](https://github.com/HamletSargsyan/livebot/issues/8)
- Новый предмет: клевер-удачи 🍀 [#8](https://github.com/HamletSargsyan/livebot/issues/8)

## [3.2.3] - 2024-05-14

Expand Down
9 changes: 2 additions & 7 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(self):
super().__init__()

def emit(self, record):
if record.levelno == 10 and record.name == "TeleBot":
if record.levelno == 10 and record.name == telebot.logger.name:
return
from helpers.utils import log

Expand All @@ -106,13 +106,8 @@ def emit(self, record):


logger.addHandler(TelegramLogsHandler())

formatter = logging.Formatter(
'%(asctime)s (%(filename)s:%(lineno)d %(threadName)s) %(levelname)s - %(name)s: "%(message)s"'
)

console_output_handler = logging.StreamHandler(sys.stderr)
console_output_handler.setFormatter(formatter)
console_output_handler.setFormatter(telebot.formatter)
logger.addHandler(console_output_handler)

telebot.logger.addHandler(TelegramLogsHandler())
Expand Down

0 comments on commit 2672866

Please sign in to comment.