• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

freqtrade / freqtrade / 12801367446

03 Jan 2025 02:29PM UTC coverage: 94.313% (-0.08%) from 94.396%
12801367446

push

github

xmatthias
test: add test for improved safe_wrapper behavior

21791 of 23105 relevant lines covered (94.31%)

0.94 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/freqtrade/loggers/std_err_stream_handler.py
1
import sys
×
2
from logging import Handler
×
3

4

5
class FTStdErrStreamHandler(Handler):
×
6
    def flush(self):
×
7
        """
8
        Override Flush behaviour - we keep half of the configured capacity
9
        otherwise, we have moments with "empty" logs.
10
        """
11
        self.acquire()
×
12
        try:
×
13
            sys.stderr.flush()
×
14
        finally:
15
            self.release()
×
16

17
    def emit(self, record):
×
18
        try:
×
19
            msg = self.format(record)
×
20
            # Don't keep a reference to stderr - this can be problematic with progressbars.
21
            sys.stderr.write(msg + "\n")
×
22
            self.flush()
×
23
        except RecursionError:
×
24
            raise
×
25
        except Exception:
×
26
            self.handleError(record)
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc