diff options
| -rw-r--r-- | DistUpgrade/DistUpgradeCache.py | 2 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 2 | ||||
| -rwxr-xr-x | DistUpgrade/dist-upgrade.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/DistUpgrade/DistUpgradeCache.py b/DistUpgrade/DistUpgradeCache.py index ab7e24a4..1711ef1b 100644 --- a/DistUpgrade/DistUpgradeCache.py +++ b/DistUpgrade/DistUpgradeCache.py @@ -19,7 +19,7 @@ class MyCache(apt.Cache): # turn on debuging apt_pkg.Config.Set("Debug::pkgProblemResolver","true") - fd = os.open(os.path.expanduser("~/dist-upgrade-apt.log"), os.O_RDWR|os.O_CREAT|os.O_TRUNC) + fd = os.open("/var/log/dist-upgrade-apt.log", os.O_RDWR|os.O_CREAT|os.O_TRUNC) os.dup2(fd,1) os.dup2(fd,2) diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 9bd55d24..3697a49e 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -235,7 +235,7 @@ class DistUpgradeViewGtk(DistUpgradeView,SimpleGladeApp): self._term.set_font_from_string("monospace 10") self._term.connect("contents-changed", self._term_content_changed) self._terminal_lines = [] - self._terminal_log = open(os.path.expanduser("~/dist-upgrade-term.log"),"w") + self._terminal_log = open("/var/log/dist-upgrade-term.log","w") return self._term def _term_content_changed(self, term): " called when the *visible* part of the terminal changes " diff --git a/DistUpgrade/dist-upgrade.py b/DistUpgrade/dist-upgrade.py index 437be42d..632de54d 100755 --- a/DistUpgrade/dist-upgrade.py +++ b/DistUpgrade/dist-upgrade.py @@ -9,7 +9,7 @@ import sys if __name__ == "__main__": logging.basicConfig(level=logging.DEBUG, - filename=os.path.expanduser("~/dist-upgrade.log"), + filename="/var/log/dist-upgrade.log", format='%(asctime)s %(levelname)s %(message)s', filemode='w') |
