【发布时间】:2019-03-13 16:11:06
【问题描述】:
我在使用 Graphene 和 Django 查看 DEBUG 级别日志时遇到问题。我在settings.py中设置了以下内容:
但是,当我尝试查看 Django 服务器的日志时,我看到的只是:
❯❯❯ kubectl 日志 -f server-6b65f48895-bmp6w 服务器 要执行的操作: 应用所有迁移:admin、auth、contenttypes、django_celery_beat、django_celery_results、server、sessions、social_django 运行迁移: 没有要申请的迁移。 正在执行系统检查... 系统检查未发现任何问题(0 静音)。 2018 年 10 月 8 日 - 23:59:00 Django 2.0.6 版,使用设置'backend.settings' 在 http://0.0.0.0:8000/ 启动开发服务器 使用 CONTROL-C 退出服务器。 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113 “POST /graphql HTTP/1.1”400 113我如何查看DEBUG 级别的日志以了解为什么我的服务器一直在为 400 服务?
我未设置 Django DEBUG 环境变量。我正在尝试调试生产问题。
【问题讨论】:
标签: django graphql graphene-python