diff --git a/configure.ac b/configure.ac index 6524ccbd..46a0c026 100644 --- a/configure.ac +++ b/configure.ac @@ -1,4 +1,4 @@ -AC_INIT([Sugar],[0.32],[],[sugar]) +AC_INIT([Sugar],[0.33],[],[sugar]) AC_PREREQ([2.59]) diff --git a/sugar/logger.py b/sugar/logger.py index f41d48fd..bdfc2e78 100644 --- a/sugar/logger.py +++ b/sugar/logger.py @@ -12,6 +12,8 @@ if dbus.version < (0, 70, 0): import gobject +from sugar import env + __queue = None CONSOLE_BUS_NAME = 'org.laptop.Sugar.Console' @@ -121,7 +123,9 @@ def start(console_id, console = None): root_logger = logging.getLogger('') root_logger.setLevel(logging.DEBUG) root_logger.addHandler(Handler(queue)) - fileh = logging.FileHandler('/tmp/sugar.log') + + log_file = os.path.join(env.get_profile_path(), 'sugar.log') + fileh = logging.FileHandler(log_file) fileh.setFormatter(logging.Formatter("""[%(asctime)s] %(message)s""")) root_logger.addHandler(fileh)