Skip to content

Commit

Permalink
v2.8.0b0: Changed the adding level error handling method to "ignore".
Browse files Browse the repository at this point in the history
  • Loading branch information
MPCodeWriter21 committed Dec 13, 2023
1 parent 06e1086 commit 11ba948
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ Help this project by [Donation](DONATE.md)
Changes
-----------

### 2.8.0b0

+ Changed the adding level error handling method to "ignore".

### 2.8.0a0-2

+ Ability to add new methods to the Logger object for each custom level.
Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,9 @@ pip install git+https://github.com/MPCodeWriter21/log21
Changes
-------

### 2.8.0a0-2
### 2.8.0b0

+ Ability to add new methods to the Logger object for each custom level.
+ Update python version
+ Added "force" error handling method to `Logger.add_level`.
+ Changed the adding level error handling method to "ignore".

[Full CHANGELOG](https://github.com/MPCodeWriter21/log21/blob/master/CHANGELOG.md)

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ dependencies = [
"webcolors",
"docstring-parser"
]
version = "2.8.0a2"
version = "2.8.0b0"

[tool.setuptools.packages.find]
where = ["src"]
Expand Down
4 changes: 2 additions & 2 deletions src/log21/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from log21.LoggingWindow import LoggingWindow, LoggingWindowHandler
from log21.StreamHandler import StreamHandler, ColorizingStreamHandler

__version__ = "2.8.0a2"
__version__ = "2.8.0b0"
__author__ = "CodeWriter21 (Mehrad Pooryoussof)"
__github__ = "Https://GitHub.com/MPCodeWriter21/log21"
__all__ = [
Expand Down Expand Up @@ -182,7 +182,7 @@ def get_logger(
handler.setFormatter(formatter)
logger.addHandler(handler)
if level_names:
logger.add_levels(level_names, errors='handle')
logger.add_levels(level_names, errors='ignore')
_manager.addLogger(name, logger)

if file:
Expand Down

0 comments on commit 11ba948

Please sign in to comment.