Well I can confirm that line 661 was the one that tried to log error, but changing
logging.error("Dist-upgrade failed: '%s'", e)
to
logging.error("Dist-upgrade failed: '%s'", unicode(e))
only results in correctly printing 'Dist-upgrade' failed error to log file:
2014-04-22 20:06:46,539 DEBUG The package 'update-manager-kde' is marked for removal but it's in the removal blacklist
2014-04-22 20:06:49,343 ERROR Dist-upgrade failed: 'Pakiet "update-manager-kde" jest oznaczony do usunięcia, lecz znajduje się na liście pakietów, których nie należy usuwać.'
2014-04-22 20:06:49,345 DEBUG abort called
and does NOT fix the root cause. (Meaning that this change only adds one line to logfile).
Well I can confirm that line 661 was the one that tried to log error, but changing error(" Dist-upgrade failed: '%s'", e) error(" Dist-upgrade failed: '%s'", unicode(e))
logging.
to
logging.
only results in correctly printing 'Dist-upgrade' failed error to log file:
2014-04-22 20:06:46,539 DEBUG The package 'update- manager- kde' is marked for removal but it's in the removal blacklist manager- kde" jest oznaczony do usunięcia, lecz znajduje się na liście pakietów, których nie należy usuwać.'
2014-04-22 20:06:49,343 ERROR Dist-upgrade failed: 'Pakiet "update-
2014-04-22 20:06:49,345 DEBUG abort called
and does NOT fix the root cause. (Meaning that this change only adds one line to logfile).