# Path: elbepack/log.py
# def async_logging(r, w, stream, block, atmost=4096):
#     t = threading.Thread(target=AsyncLogging(atmost, stream, block),
#                          args=(r, w))
#     t.daemon = True
#     t.start()


import os
import logging
from subprocess import Popen, PIPE, STDOUT, call
from io import TextIOWrapper, BytesIO
from elbepack.log import async_logging
# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2014-2015 Torben Hohn <torbenh@linutronix.de>
# Copyright (c) 2014 Ferdinand Schwenk <ferdinand.schwenk@emtrion.de>
# Copyright (c) 2016-2017 Manuel Traut <manut@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later





log = logging.getLogger("log")
soap = logging.getLogger("soap")


class CommandError(Exception):

    def __init__(self, cmd, returncode):

# Path: elbepack/log.py
# def async_logging(r, w, stream, block, atmost=4096):
#     t = threading.Thread(target=AsyncLogging(atmost, stream, block),
#                          args=(r, w))
#     t.daemon = True
#     t.start()


# Path: elbepack/shellhelper.py
import os
import logging
from subprocess import Popen, PIPE, STDOUT, call
from io import TextIOWrapper, BytesIO
from elbepack.log import async_logging

# ELBE - Debian Based Embedded Rootfilesystem Builder
# Copyright (c) 2014-2015 Torben Hohn <torbenh@linutronix.de>
# Copyright (c) 2014 Ferdinand Schwenk <ferdinand.schwenk@emtrion.de>
# Copyright (c) 2016-2017 Manuel Traut <manut@linutronix.de>
#
# SPDX-License-Identifier: GPL-3.0-or-later





log = logging.getLogger("log")
soap = logging.getLogger("soap")


class CommandError(Exception):

    def __init__(self, cmd, returncode):

        super(CommandError, self).__init__(cmd, returncode)