systemctl服务未填充日志文件

时间:2020-08-04 00:45:28

标签: python-3.x systemd

嗨,我无法在app.log中看到输出

async def run_app():
    app = DvmtApp(config=Config)
    app.logger.info("log this")


(3.0.0.0) root@sl2o2app301:/opt/company$ systemctl status product
● product.service - product
   Loaded: loaded (/etc/systemd/system/product.service; enabled; vendor preset: disabled)
   Active: active (running) since Mon 2020-08-03 17:27:14 PDT; 2min 22s ago
 Main PID: 49867 (python)
   CGroup: /system.slice/product.service
           └─49867 /opt/company/product/3.0.0.0/bin/python -m product --debug --logfile /var/log/company/product/app.log

Aug 03 17:27:14 sl2o2app301 systemd[1]: Started product.
Aug 03 17:27:14 sl2o2app301 systemd[1]: Starting product...
Aug 03 17:28:05 sl2o2app301 python[49867]: ApplicationError(error=<wamp.error.no_such_procedure>, args=['no callee registered for procedure <com.company.o2.systems.S5001.rpc.get_system_info>'], kwargs={}, enc_algo=None)
Aug 03 17:28:15 sl2o2app301 python[49867]: ApplicationError(error=<wamp.error.no_such_procedure>, args=['no callee registered for procedure <com.company.o2.systems.S5001.rpc.get_system_info>'], kwargs={}, enc_algo=None)

我希望在log this中看到/var/log/company/product/app.log

但该文件为空

tail -f /var/log/intuitive/dvmt-certificate-manager/app.log
<<EMPTY>>

0 个答案:

没有答案