Merge pull request #432 from radiorabe/fix/remove-dead-hack
Remove std_err_override
This commit is contained in:
commit
0b0cb77c29
|
@ -1,20 +0,0 @@
|
|||
from setuptools import setup
|
||||
from subprocess import call
|
||||
import sys
|
||||
import os
|
||||
|
||||
script_path = os.path.dirname(os.path.realpath(__file__))
|
||||
print script_path
|
||||
os.chdir(script_path)
|
||||
|
||||
setup(name='std_err_override',
|
||||
version='1.0',
|
||||
description='Airtime Log Writer',
|
||||
url='http://github.com/sourcefabric/Airtime',
|
||||
author='sourcefabric',
|
||||
license='AGPLv3',
|
||||
packages=['std_err_override'],
|
||||
scripts=[],
|
||||
install_requires=[],
|
||||
zip_safe=False,
|
||||
data_files=[])
|
|
@ -1,11 +0,0 @@
|
|||
import sys
|
||||
|
||||
class LogWriter():
|
||||
def __init__(self, logger):
|
||||
self.logger = logger
|
||||
|
||||
def write(self, txt):
|
||||
self.logger.error(txt)
|
||||
|
||||
def override_std_err(logger):
|
||||
sys.stderr = LogWriter(logger)
|
Loading…
Reference in New Issue