@@ -1169,16 +1169,16 @@ def preScriptPass(anaconda, file):
anaconda.intf.kickstartErrorWindow("Could not open kickstart file or included file named %s" % e.filename)
sys.exit(1)
else:
- print _("The following error was found while parsing the kickstart "
- "configuration file:
%s") % e
+ stderrLog.critical(_("The following error was found while parsing the kickstart "
+ "configuration file:
%s") % e)
sys.exit(1)
except KickstartError, e:
if anaconda.intf:
anaconda.intf.kickstartErrorWindow(e.__str__())
sys.exit(1)
else:
- print _("The following error was found while parsing the kickstart "
- "configuration file:
%s") % e
+ stderrLog.critical(_("The following error was found while parsing the kickstart "
+ "configuration file:
handler = AnacondaKSHandler(anaconda)
@@ -1215,16 +1215,16 @@ def parseKickstart(anaconda, file):
anaconda.intf.kickstartErrorWindow("Could not open kickstart file or included file named %s" % e.filename)
sys.exit(1)
else:
- print _("The following error was found while parsing the kickstart "
- "configuration file:
%s") % e
+ stderrLog.critical(_("The following error was found while parsing the kickstart "
+ "configuration file:
%s") % e)
sys.exit(1)
except KickstartError, e:
if anaconda.intf:
anaconda.intf.kickstartErrorWindow(e.__str__())
sys.exit(1)
else:
- print _("The following error was found while parsing the kickstart "
- "configuration file:
%s") % e
+ stderrLog.critical(_("The following error was found while parsing the kickstart "
+ "configuration file:
%s") % e)
sys.exit(1)
return handler
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
02-18-2010, 07:51 AM
Ales Kozumplik
logging: introduce stderr logger and use it for critical situations in kickstart.py.
On 02/18/2010 08:23 AM, Hans de Goede wrote:
Did you test this with a serial console ?
I've discussed the before with clumens and the reason to
use print is that that does the right thing wrt serial consoles.
I tested writing stuff through the stderr logger and I can see it on
serial console.
Also notice that the cmdline.py InterfaceClass uses print in a lot
of places.
Yes and I think that's okay because we don't want to log it anyway.
Ales
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
02-18-2010, 08:01 AM
Hans de Goede
logging: introduce stderr logger and use it for critical situations in kickstart.py.
Ok,
On 02/18/2010 09:51 AM, Ales Kozumplik wrote:
On 02/18/2010 08:23 AM, Hans de Goede wrote:
Did you test this with a serial console ?
I've discussed the before with clumens and the reason to
use print is that that does the right thing wrt serial consoles.
I tested writing stuff through the stderr logger and I can see it on
serial console.
Good, ack.
Regards,
Hans
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list