修改功能 打开日志
This commit is contained in:
parent
6f8bdd342f
commit
b4bc6321eb
|
@ -188,7 +188,7 @@ class UpdateManager():
|
|||
header = _("Could not initialize the package information")
|
||||
desc = _("An unresolvable problem occurred while "
|
||||
"initializing the package information.\n\n"
|
||||
"Please report this bug against the 'update-manager' "
|
||||
"Please report this bug against the 'kylin-system-updater' "
|
||||
"package and include the following error "
|
||||
"message:\n") + str(e)
|
||||
_success = False
|
||||
|
|
|
@ -241,7 +241,7 @@ class UpdateManagerDbusController(dbus.service.Object):
|
|||
#查询解决依赖 信号
|
||||
@dbus.service.signal(UPDATER_DBUS_INTERFACE,signature='bbasasasss')
|
||||
def UpdateDependResloveStatus(self, resolver_status, remove_status,remove_pkgs,pkg_raw_description,delete_desc,error_string='',error_desc='',):
|
||||
logging.info("emit UpdateDependResloveStatus:resolver_status = %r , resolver_status = %r , remove_pkgs = %a,pkg_raw_description = %a ,delete_desc = %a,error_string = %s , error_desc = %s ",\
|
||||
logging.info("emit UpdateDependResloveStatus:resolver_status = %r , resolver_status = %r , remove_pkgs = %a,pkg_raw_description = %a ,delete_desc = %s,error_string = %s , error_desc = %s ",\
|
||||
resolver_status,remove_status,remove_pkgs,pkg_raw_description,delete_desc,error_string,error_desc)
|
||||
|
||||
#查询dist-upgrade解决依赖
|
||||
|
|
|
@ -270,7 +270,7 @@ class InstallBackend():
|
|||
header = _("Could not calculate the upgrade")
|
||||
desc = _("An unresolvable problem occurred while "
|
||||
"calculating the upgrade.\n\n"
|
||||
"Please report this bug against the 'update-manager' "
|
||||
"Please report this bug against the 'kylin-system-updater' "
|
||||
"package and include the following error "
|
||||
"message:\n") + str(e)
|
||||
logging.error(header + desc)
|
||||
|
@ -305,7 +305,7 @@ class InstallBackend():
|
|||
|
||||
# 信息插入数据库 and 发送信号
|
||||
if error_string != '' or error_desc != '':
|
||||
logging.error(error_string + error_desc)
|
||||
logging.info(error_string + error_desc)
|
||||
|
||||
self.window_main.sqlite3_server.insert_info(self.now_upgrade.upgrade_mode,self.now_upgrade.single_pkgs,self.now_upgrade.upgrade_groups,success,error_string,error_desc)
|
||||
self.window_main.dbusController.UpdateDownloadFinished(success,upgrade_content,error_string,error_desc)
|
||||
|
|
|
@ -58,12 +58,10 @@ if __name__ == "__main__":
|
|||
signal.signal(signal.SIGHUP, signal.SIG_IGN)
|
||||
signal.signal(signal.SIGINT,signal_handler_term)
|
||||
|
||||
logging.basicConfig(format=FORMAT,level=logging.DEBUG)
|
||||
|
||||
# if options.debug:
|
||||
# logging.basicConfig(format=FORMAT,level=logging.DEBUG)
|
||||
# else:
|
||||
# logging.basicConfig(format=FORMAT,level=logging.INFO,filename = logfile(),filemode = 'a')
|
||||
if options.debug:
|
||||
logging.basicConfig(format=FORMAT,level=logging.DEBUG)
|
||||
else:
|
||||
logging.basicConfig(format=FORMAT,level=logging.INFO,filename = logfile(),filemode = 'a')
|
||||
|
||||
if os.getuid() != 0:
|
||||
print(_("You need to be root to run this application"))
|
||||
|
|
|
@ -1778,7 +1778,7 @@ msgid ""
|
|||
"An unresolvable problem occurred while initializing the package "
|
||||
"information.\n"
|
||||
"\n"
|
||||
"Please report this bug against the 'update-manager' package and include the "
|
||||
"Please report this bug against the 'kylin-system-updater' package and include the "
|
||||
"following error message:\n"
|
||||
msgstr ""
|
||||
|
||||
|
@ -1786,7 +1786,7 @@ msgstr ""
|
|||
msgid ""
|
||||
"An unresolvable problem occurred while calculating the upgrade.\n"
|
||||
"\n"
|
||||
"Please report this bug against the 'update-manager' package and include the "
|
||||
"Please report this bug against the 'kylin-system-updater' package and include the "
|
||||
"following error message:"
|
||||
msgstr ""
|
||||
"在计算升级时遇到一个无法解决的问题。\n"
|
||||
|
|
Loading…
Reference in New Issue