diff options
author | James Meyer <james.meyer@operamail.com> | 2009-06-04 13:43:26 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2009-06-04 13:43:26 (GMT) |
commit | bb8e9844185c984a76049dddc087bdf347ff3c9f (patch) | |
tree | f52326ee4b71114dbefc40b14e3646aa0da82bde /abs/core-testing/LinHES-config/mv_network.py | |
parent | c4fb1a3c13043bc6c2dd7fee59e6477ad3fb5f19 (diff) | |
download | linhes_pkgbuild-bb8e9844185c984a76049dddc087bdf347ff3c9f.zip linhes_pkgbuild-bb8e9844185c984a76049dddc087bdf347ff3c9f.tar.gz linhes_pkgbuild-bb8e9844185c984a76049dddc087bdf347ff3c9f.tar.bz2 |
linhes-config: minor cleanup of logging
Diffstat (limited to 'abs/core-testing/LinHES-config/mv_network.py')
-rwxr-xr-x[-rw-r--r--] | abs/core-testing/LinHES-config/mv_network.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/abs/core-testing/LinHES-config/mv_network.py b/abs/core-testing/LinHES-config/mv_network.py index 77ee2d8..ca29c7d 100644..100755 --- a/abs/core-testing/LinHES-config/mv_network.py +++ b/abs/core-testing/LinHES-config/mv_network.py @@ -21,7 +21,7 @@ def setup_MYTH_DHCP(systemconfig): try: defaultdhcp = systemconfig["HostUSEDHCP"+default_interface] except: - logging.debug(" Error occured finding default dhcp") + logging.critical(" *Error occured finding default dhcp") defaultdhcp = "0" logging.debug(" Using %s as dhcp value for %s", default_interface, defaultdhcp) return defaultdhcp @@ -64,7 +64,7 @@ def setup_hostname(systemconfig): try: hostname = systemconfig["hostname"] except: - logging.info(" Hostname could not be set") + logging.critical(" *Hostname could not be set") logging.info(" Using default value of me") hostname = "me" logging.info(" Setting the hostname to %s", hostname) @@ -182,12 +182,12 @@ def change_iface_state(netdev, state): def find_active(systemconfig): interfacelist=('eth0', 'eth1', 'wlan0', 'wlan1') logging.debug(" _Start of find_active") - try: - os.remove("/etc/resolv.conf") - except: - logging.debug(" couldn't remove /etc/resolv.conf") if systemconfig["mythdhcp"] == "1": + try: + os.remove("/etc/resolv.conf") + except: + logging.debug(" couldn't remove /etc/resolv.conf") cmd = ''' echo search lan > /etc/resolv.conf ''' mv_common.runcmd(cmd) cmd = ''' echo nameserver 127.0.0.1 >> /etc/resolv.conf ''' @@ -214,7 +214,7 @@ def vnc_netboot_check(): bootoptions = f.readlines() f.close() except: - logging.debug(" Couldn't open /proc/cmdline") + logging.critical(" *Couldn't open /proc/cmdline") logging.debug(" Assuming it's ok to fiddle with the network") return True bootoptions = bootoptions[0] |