commit 3d83a985563069ee58989ea2f0affa11cc34a76a
Author: Radek Pazdera <rpazdera(a)redhat.com>
Date: Thu Jun 21 11:24:05 2012 +0200
LoggingServer: Removing date subdir in slave logs
This commit removes $date subdirectory from slave logging file
hierarchy. It's not necessary, because there's always only one
directory anyway and it could also be misleading, because the
$date doesn't match dates from the slaves. See the following
examples:
The previous state (path to slave logs):
Logs/2012-06-19_12:05:33/libteam/10.34.1.171/2012-06-19_12:06:16/info
Current state:
Logs/2012-06-19_12:05:33/libteam/10.34.1.171/info
Logs/<controller exec time>/<recipe name>/<slave IP>/<log
file>
Signed-off-by: Radek Pazdera <rpazdera(a)redhat.com>
Common/LoggingServer.py | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/Common/LoggingServer.py b/Common/LoggingServer.py
index 971414a..4bd4f19 100644
--- a/Common/LoggingServer.py
+++ b/Common/LoggingServer.py
@@ -75,9 +75,8 @@ class LoggingServer:
if e.errno != 17:
raise
logger = logging.getLogger(address)
- Logs(self.debug, False, logger,
- log_root=slave_root_path,
- to_display=False)
+ Logs(self.debug, False, logger, log_root=slave_root_path,
+ to_display=False, date="")
return (logger, address, sock[0])
Show replies by date