~ubuntu-branches/ubuntu/oneiric/landscape-client/oneiric-proposed

« back to all changes in this revision

Viewing changes to landscape/sysinfo/deployment.py

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Hasenack
  • Date: 2011-03-01 15:38:11 UTC
  • mfrom: (1.1.22 upstream)
  • Revision ID: james.westby@ubuntu.com-20110301153811-ow0pu4j068a9ysgo
Tags: 11.02-0ubuntu0.11.04.0
* New upstream version (LP: #727324)

  - Exit gracefully instead of crashing when the filesystem is
    read-only (LP: #649997).

  - Drop hal requirement (LP: #708502).

  - Enable HTTP compression in Curl (LP: #297623).

  - Explicitly name log files that need to be rotated (LP: #634236).

  - Assorted test suite fixes

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
"""Deployment code for the sysinfo tool."""
2
2
import os
 
3
import sys
3
4
from logging import getLogger, Formatter
4
5
from logging.handlers import RotatingFileHandler
5
6
 
91
92
    """
92
93
    @param reactor: The reactor to (optionally) run the sysinfo plugins in.
93
94
    """
94
 
    setup_logging()
 
95
    try:
 
96
        setup_logging()
 
97
    except IOError, e:
 
98
        sys.exit("Unable to setup logging. %s" % e)
95
99
 
96
100
    if sysinfo is None:
97
101
        sysinfo = SysInfoPluginRegistry()