message clean up
This commit is contained in:
parent
3038f34025
commit
27d6712ab2
@ -208,8 +208,9 @@ def handle_swapcfg(swapcfg):
|
|||||||
try:
|
try:
|
||||||
for line in util.load_file("/proc/swaps").splitlines():
|
for line in util.load_file("/proc/swaps").splitlines():
|
||||||
if line.startswith(fname + " "):
|
if line.startswith(fname + " "):
|
||||||
LOG.debug("swap file %s already used", fname)
|
LOG.debug("swap file %s already in use.", fname)
|
||||||
return
|
return
|
||||||
|
LOG.debug("swap file %s existed, but not in /proc/swaps", fname)
|
||||||
except:
|
except:
|
||||||
LOG.warn("swap file %s existed. Error reading /proc/swaps", fname)
|
LOG.warn("swap file %s existed. Error reading /proc/swaps", fname)
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user