Merge pull request #432 from radiorabe/fix/remove-dead-hack

Remove std_err_override
This commit is contained in:
Robb 2018-05-24 14:10:12 -04:00 committed by GitHub
commit 0b0cb77c29
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 0 additions and 31 deletions

View File

@ -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=[])

View File

@ -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)