diff --git a/CHANGELOG.rst b/CHANGELOG.rst index d065a8cef..55910309c 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 `_) - 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 `_) +- Add a way to limit the depth of formatted exceptions traceback by setting the conventional ``sys.tracebacklimit`` variable (`#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 `_) -- Fix `logger.catch` decorator not working with generator and coroutine functions (`#75 `_) +- Fix ``logger.catch`` decorator not working with generator and coroutine functions (`#75 `_) +- Fix ``record.path`` case being normalized for no necessary reason (`#85 `_) 0.2.5 (2019-01-20) diff --git a/loguru/_logger.py b/loguru/_logger.py index f2cf57668..e5dd0672f 100644 --- a/loguru/_logger.py +++ b/loguru/_logger.py @@ -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 @@ -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()