# have received a copy of LGPLv2 along with this software; if not, see # http://www.gnu.org/licenses/old-licenses/lgpl-2.0.txt. # # Jeff Ortel <*****@*****.**> # import sys import os import logging from time import sleep from getopt import getopt, GetoptError from gofer.agent.logutil import LogHandler LogHandler.install() from gofer import NAME from gofer.common import Thread, released from gofer.config import get_bool from gofer.agent.plugin import Plugin, PluginLoader from gofer.agent.manager import Manager from gofer.agent.lock import Lock, LockFailed from gofer.agent.config import AgentConfig log = logging.getLogger(__name__) class ActionThread(Thread): """ Run actions independently of main thread.
def tearDown(self): LogHandler.uninstall()
def setUp(self): LogHandler.install()