Skip to content

Commit 09aa99e

Browse files
committed
fix logging issues
1 parent 4c75773 commit 09aa99e

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

live-installer/config.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def load_config(config_path):
1919
print("#Reading yaml file:" + config_path)
2020
print("Loading: "+config_path)
2121
else:
22-
err("{} doesn't exists. Please create config file!".format(config_path))
22+
print("{} doesn't exists. Please create config file!".format(config_path))
2323
return {}
2424

2525
try:
@@ -65,7 +65,7 @@ def set(key, value):
6565
for distro_system in glob("configs/distribution/*"):
6666
distro = load_config(distro_system)
6767
if not distro:
68-
err("Failed to load: " + distro_system)
68+
print("Failed to load: " + distro_system)
6969
elif "check_this_dir" in distro and os.path.exists(distro["check_this_dir"]):
7070
break
7171
else:
@@ -77,7 +77,7 @@ def set(key, value):
7777
for initramfs_system in glob("configs/initramfs_systems/*"):
7878
initramfs = load_config(initramfs_system)
7979
if not initramfs:
80-
err("Failed to load: " + initramfs_system)
80+
print("Failed to load: " + initramfs_system)
8181
elif "check_this_dir" in initramfs and os.path.exists(initramfs["check_this_dir"]):
8282
break
8383
else:
@@ -90,7 +90,7 @@ def set(key, value):
9090
for package_manager in glob("configs/package_managers/*"):
9191
pm = load_config(package_manager)
9292
if not pm:
93-
err("Failed to load: " + package_manager)
93+
print("Failed to load: " + package_manager)
9494
elif "check_this_dir" in pm and os.path.exists(pm["check_this_dir"]):
9595
break
9696
else:
@@ -102,7 +102,7 @@ def set(key, value):
102102
for display_manager in glob("configs/display_managers/*"):
103103
display_manager = load_config(display_manager)
104104
if not display_manager:
105-
err("Failed to load: " + display_manager)
105+
print("Failed to load: " + display_manager)
106106
elif "check_this_dir" in display_manager and os.path.exists(display_manager["check_this_dir"]):
107107
break
108108
else:

live-installer/frontend/partitioning.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ def run_parted(cmd): return os.system(
587587
break
588588
if num_tries < 5:
589589
num_tries += 1
590-
err(("Could not find %s, waiting 1s..." % partition_path))
590+
print(("Could not find %s, waiting 1s..." % partition_path))
591591
os.system("sync")
592592
time.sleep(1)
593593
else:
@@ -760,7 +760,7 @@ def __init__(self, partition):
760760
break
761761
except Exception as detail:
762762
# best effort
763-
err("Could not read partition flags for %s: %s" %
763+
print("Could not read partition flags for %s: %s" %
764764
(self.path, detail))
765765
while 0 == os.system('umount ' + TMP_MOUNTPOINT):
766766
True # dummy action

0 commit comments

Comments
 (0)