From 6ba7072aed526a4027dda4698ba62b46cc60c482 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 13 Aug 2015 13:46:48 -0400 Subject: [PATCH] Fix log path for windows Under windows, the log files were not being written as expected. --- confluent_server/confluent/log.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/confluent_server/confluent/log.py b/confluent_server/confluent/log.py index f6aea0bd..5b85ee54 100644 --- a/confluent_server/confluent/log.py +++ b/confluent_server/confluent/log.py @@ -135,14 +135,14 @@ class Logger(object): os.getenv('SystemDrive'), '\\ProgramData', 'confluent', 'logs') else: - self.filepath = "/var/log/confluent/" + self.filepath = "/var/log/confluent" self.isconsole = console if console: - self.filepath += "consoles/" + self.filepath = os.path.join(self.filepath, "consoles") if not os.path.isdir(self.filepath): os.makedirs(self.filepath, 448) - self.textpath = self.filepath + logname - self.binpath = self.filepath + logname + ".cbl" + self.textpath = os.path.join(self.filepath, logname) + self.binpath = os.path.join(self.filepath, logname + ".cbl") self.writer = None self.closer = None self.textfile = None