Skip to content

Commit

Permalink
Fix "record.path" case being normalized for no reason
Browse files Browse the repository at this point in the history
  • Loading branch information
Delgan committed May 6, 2019
1 parent 6571879 commit 786151c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ Unreleased

- Modify behavior of sink option ``backtrace`` so it only extends the stacktrace upward, the display of variables values is now controlled with the new ``diagnose`` argument (`#49 <https://github.com/Delgan/loguru/issues/49>`_)
- Add coloration of exception traceback even if ``diagnose`` and ``backtrace`` options are ``False``
- Add a way to limit the depth of formatted exceptions traceback by setting the conventional `sys.tracebacklimit` variable (`#77 <https://github.com/Delgan/loguru/issues/77>`_)
- Add a way to limit the depth of formatted exceptions traceback by setting the conventional ``sys.tracebacklimit`` variable (`#77 <https://github.com/Delgan/loguru/issues/77>`_)
- The ``record["exception"]`` attribute is now unpackable as a ``(type, value, traceback)`` tuple
- Fix exception stack trace not colorizing source code lines on Windows
- Fix possible ``AttributeError`` while formatting exceptions within a ``celery`` task (`#52 <https://github.com/Delgan/loguru/issues/52>`_)
- Fix `logger.catch` decorator not working with generator and coroutine functions (`#75 <https://github.com/Delgan/loguru/issues/75>`_)
- Fix ``logger.catch`` decorator not working with generator and coroutine functions (`#75 <https://github.com/Delgan/loguru/issues/75>`_)
- Fix ``record.path`` case being normalized for no necessary reason (`#85 <https://github.com/Delgan/loguru/issues/85>`_)


0.2.5 (2019-01-20)
Expand Down
4 changes: 2 additions & 2 deletions loguru/_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
from collections import namedtuple
from inspect import isclass
from multiprocessing import current_process
from os.path import basename, normcase, splitext
from os.path import basename, splitext
from threading import current_thread

from colorama import AnsiToWin32
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def log_function(_self, _message, *args, **kwargs):
return

code = frame.f_code
file_path = normcase(code.co_filename)
file_path = code.co_filename
file_name = basename(file_path)
thread = current_thread()
process = current_process()
Expand Down

0 comments on commit 786151c

Please sign in to comment.