Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/services/console
diff options
context:
space:
mode:
authorEduardo Silva <edsiper@monotop.(none)>2007-05-30 18:32:29 (GMT)
committer Eduardo Silva <edsiper@monotop.(none)>2007-05-30 18:32:29 (GMT)
commit7985a052748d99087c157e34b8a5678f52213b91 (patch)
tree5bf11642956c3a6f7fcf7fe920d29bfdf752bbdf /services/console
parentdd00dda41f8e1966e9bcd89ccb0af08f365412f4 (diff)
Console: fix reading log files
Diffstat (limited to 'services/console')
-rw-r--r--services/console/interface/logviewer/logviewer.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/services/console/interface/logviewer/logviewer.py b/services/console/interface/logviewer/logviewer.py
index c741ac9..1ee5ce6 100644
--- a/services/console/interface/logviewer/logviewer.py
+++ b/services/console/interface/logviewer/logviewer.py
@@ -80,10 +80,13 @@ class MultiLogView(gtk.VBox):
def _update(self, tv_menu):
# Searching log files
for logfile in os.listdir(self._logs_path):
+ full_log_path = os.path.join(self._logs_path, logfile)
+
+ if os.path.isdir(full_log_path):
+ continue
if not self._activity.has_key(logfile):
self._add_activity(logfile)
- full_log_path = os.path.join(self._logs_path, logfile)
model = LogBuffer(full_log_path)
self._activity[logfile] = model