diff options
author | Joel Andres Granados <jgranado@redhat.com> | 2008-11-19 13:46:14 +0100 |
---|---|---|
committer | Joel Andres Granados <jgranado@redhat.com> | 2008-11-19 18:44:24 +0100 |
commit | b8d360b0142961972e4d7bfa67841542554725a3 (patch) | |
tree | 2b25cce5a9be006c17229dcb884bf9fd726d0b1b /pyfirstaidkit/interpret.py | |
parent | 1b32e6c8032db019a191d3fa37430371de1b9c34 (diff) | |
download | firstaidkit-b8d360b0142961972e4d7bfa67841542554725a3.tar.gz firstaidkit-b8d360b0142961972e4d7bfa67841542554725a3.tar.xz firstaidkit-b8d360b0142961972e4d7bfa67841542554725a3.zip |
Various small fixes.
Makefile:
1. Cut counts from 1 not 0.
2. Create the "about" info in the makefile instead of spec file.
3. Put subdirs and about targets into one build target.
firstaidkit.spec:
1. Erase the about creation from here.
2. Erase the fedora 7 specific stuff.
3. Call make build.
4. xserver plugin does not need rhpl nor rhpxl anymore.
5. Actually include the COPYING file where the about says it is.
configuration.py:
1. Change the default backup dir from /tmp/fakbackup to /tmp.
/tmp/fakbackup caused some file permission strangeness when
a non root user executed fak after root had executed it. This
can still occur, but it will be left like this as the user
should not execute fak in non root anyway.
logging:
plugins.py,interpreter.py. __init__.py
1. Always use the reporting object when possible.
2. Add time stamp and level of message to log messages.
Diffstat (limited to 'pyfirstaidkit/interpret.py')
-rw-r--r-- | pyfirstaidkit/interpret.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pyfirstaidkit/interpret.py b/pyfirstaidkit/interpret.py index 54342eb..a55ab0e 100644 --- a/pyfirstaidkit/interpret.py +++ b/pyfirstaidkit/interpret.py @@ -26,8 +26,6 @@ from utils import FileBackupStore from dependency import Dependencies from configuration import Info -Logger=logging.getLogger("firstaidkit") - class Tasker: """The main interpret of tasks described in Config object""" @@ -180,8 +178,9 @@ class Tasker: try: p = pluginSystem.getplugin(self._config.operation.params) except KeyError: - Logger.error("No such plugin '%s'" % - (self._config.operation.params,)) + self._reporting.info(message = "No such plugin '%s'" % \ + (self._config.operation.params,), level = TASKER, \ + origin = self) return False flowinfo = [ (f, p.getFlow(f).description) for f in p.getFlows() ] rep = {"id": self._config.operation.params, "name": p.name, @@ -194,7 +193,8 @@ class Tasker: # Any other case else: - Logger.error("Incorrect task specified") + self._reporting.info(message = "Incorrect task specified", \ + level = TASKER, origin = self) self._reporting.stop(level = TASKER, origin = self) return False |