我的 Flask 应用程序使用一个模块,该模块获得这样的记录器:
import logging
logger = logging.getLogger("XYZ")
...
logger.debug("stuff")
Run Code Online (Sandbox Code Playgroud)
无需修改模块中的任何内容,我可以配置 Flask 以便模块在调用 getLogger("XYZ") 时获取 Flask 的 app.logger 吗?
如何从BeagleBone Black Debian(wheezy)发行版中永久删除cloud9,bonescript,gateone等?我可以使用以下命令禁用它们:
systemctl disable cloud9.service
systemctl disable gateone.service
systemctl disable bonescript.service
systemctl disable bonescript.socket
systemctl disable bonescript-autorun.service
systemctl disable avahi-daemon.service
systemctl disable gdm.service
systemctl disable mpd.service
Run Code Online (Sandbox Code Playgroud)
并且禁用在重新启动后仍然存在,但有时当我安装软件包时,某些systemd触发器将重新启用它们.我该如何永久删除它们?