[issue24884] Add method reopenFile() in WatchedFileHandler class

Marian Horban report at bugs.python.org
Tue Aug 18 11:36:54 CEST 2015


New submission from Marian Horban:

Method WatchedFileHandler::emit() makes 2 things:
1. reopens log file,
2. emits record.
Sometimes user wants to reopen file immediately after some action without emitting.
Code that reopens file must be moved to separate method to avoid copy-pasting code in programs that use this functionality.
Patch is provided.

----------
files: add_reopen_file.patch
keywords: patch
messages: 248765
nosy: Marian Horban
priority: normal
severity: normal
status: open
title: Add method reopenFile() in WatchedFileHandler class
type: enhancement
Added file: http://bugs.python.org/file40201/add_reopen_file.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24884>
_______________________________________


More information about the Python-bugs-list mailing list