
When run wok from local build (not installed), use data/logs as the default log directory. Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo@linux.vnet.ibm.com> --- src/wok/config.py.in | 2 +- tests/test_config.py.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wok/config.py.in b/src/wok/config.py.in index 6bc0c1e..0c3acdd 100644 --- a/src/wok/config.py.in +++ b/src/wok/config.py.in @@ -91,7 +91,7 @@ class Paths(object): else: self.nginx_conf_dir = self.add_prefix('src/nginx') self.state_dir = self.add_prefix('data') - self.log_dir = self.add_prefix('log') + self.log_dir = self.add_prefix('data/logs') self.conf_dir = self.add_prefix('src') self.src_dir = self.add_prefix('src/wok') self.plugins_dir = self.add_prefix('src/wok/plugins') diff --git a/tests/test_config.py.in b/tests/test_config.py.in index 3020c53..1e7cc72 100644 --- a/tests/test_config.py.in +++ b/tests/test_config.py.in @@ -57,7 +57,7 @@ class ConfigTests(unittest.TestCase): Paths.get_prefix = lambda self: '/home/user/wok' paths = Paths() self.assertEquals(paths.state_dir, '/home/user/wok/data') - self.assertEquals(paths.log_dir, '/home/user/wok/log') + self.assertEquals(paths.log_dir, '/home/user/wok/data/logs') self.assertEquals(paths.conf_dir, '/home/user/wok/src') self.assertEquals(paths.src_dir, '/home/user/wok/src/wok') self.assertEquals(paths.plugins_dir, '/home/user/wok/src/wok/plugins') -- 2.1.0