Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SQL logged during initial schema creation #63

Open
Cryptophobia opened this issue Mar 20, 2018 · 0 comments
Open

SQL logged during initial schema creation #63

Cryptophobia opened this issue Mar 20, 2018 · 0 comments

Comments

@Cryptophobia
Copy link
Member

The change in #838 intends only to log SQL queries if DEIS_DEBUG was true, but it appears this flag is ignored when Django executes its initial DB management tasks:

DEBUG CREATE INDEX "guardian_userobjectpermission_417f1b1c" ON "guardian_userobjectpermission" ("content_type_id"); (params [])
DEBUG CREATE INDEX "guardian_userobjectpermission_8373b171" ON "guardian_userobjectpermission" ("permission_id"); (params [])
DEBUG CREATE INDEX "guardian_userobjectpermission_e8701ad4" ON "guardian_userobjectpermission" ("user_id"); (params [])
  Applying guardian.0001_initial... OK
DEBUG CREATE TABLE "django_session" ("session_key" varchar(40) NOT NULL PRIMARY KEY, "session_data" text NOT NULL, "expire_date" timestamp with time zone NOT NULL); (params None)
DEBUG CREATE INDEX "django_session_de54fa62" ON "django_session" ("expire_date"); (params [])
DEBUG CREATE INDEX "django_session_session_key_c0390e0f_like" ON "django_session" ("session_key" varchar_pattern_ops); (params [])
  Applying sessions.0001_initial... OK
[2016-06-30 21:57:55 +0000] [22] [INFO] Starting gunicorn 19.6.0
[2016-06-30 21:57:55 +0000] [22] [INFO] Listening at: http://0.0.0.0:8000 (22)
[2016-06-30 21:57:55 +0000] [22] [INFO] Using worker: sync
[2016-06-30 21:57:55 +0000] [25] [INFO] Booting worker with pid: 25
[2016-06-30 21:57:55 +0000] [28] [INFO] Booting worker with pid: 28

FROM deis/controller#847 and @mboersma

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant