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

sirosen / SALVE / 190 / 4
100%
stable: 100%

Build:
Build:
LAST BUILD BRANCH: wip/refactor/2-3-0-cleanup
DEFAULT BRANCH: stable
Ran 21 Oct 2015 03:32AM UTC
Files 71
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

21 Oct 2015 03:32AM UTC coverage: 99.711%. Remained the same
190.4

push

travis-ci

sirosen
Special casing for Python 2.6 logging

The Python2.6 StreamHandler initializer has a different signature from the one
used in Python2.7 and Python3.x
Namely, rather than using a keyword arg, it uses an optional positional
argument for the Stream, and it defaults when the argument is omitted, not when
it is `None`. Although I'm unsure of the behavior of the logger on 2.6 when the
argument is supplied as None, I'd expect it to break. Per the documentation,
this is the only correct/safe way to set the stream for Python 2.6

In Python 2.6, the NullHandler was not part of the standard logging library. As
a result, we must wrap references to the NullHandler in salve.log.handler and
explicitly define a NullHandler when we get an AttributeError doing so (which
indicates that the logging module doesn't have an attribute named
'NullHanlder').

Fixes a typo of "'DEBUG'" instead of "logging.DEBUG"

1382 of 1386 relevant lines covered (99.71%)

1.0 hits per line

Source Files on job 190.4
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 190
  • Travis Job 190.4
  • 17f10e11 on github
  • Prev Job for on wip/bugfix/logging-python-vers (#189.4)
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