New submission from Akshay Indalkar <akshayindalkar1...@gmail.com>:
I am using RotatingFileHandler library for saving the logs in the email.log file. Issue is logs are not saved in the correct order in the log file. For Example: The latest logs are always needs to be saved in email.log file, then email.log.1, then email.log.2 and so on Correct Order: email.log.3 ----> older than email.log.2 email.log.2 ----> older than email.log.1 email.log.1 ----> older than email.log email.log ----> Latest logs always saved here But now the logs are randomly saved in the log file like email.log.2 email.log.1 email.log email.log.3 or email.log.2 email.log.3 email.log.1 email.log Log are been saved randomly in incorrect order. I have attached the evidence image also instructions to replicate. To give you jist: Using linux environment. Basically I am just logging into the file every 5 seconds, and printing the files which are modified in the order. To replicate ,just run python abc.py ---------- components: Library (Lib) files: RotatingFIleHandler.zip messages: 355905 nosy: akshay_indalkar, vinay.sajip priority: normal severity: normal status: open title: RotatingFileHandler issue: logs in the file are printed in incorrect order. versions: Python 2.7, Python 3.6 Added file: https://bugs.python.org/file48691/RotatingFIleHandler.zip _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue38674> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com