Skip to content

Instantly share code, notes, and snippets.

@antonyc
Created January 18, 2022 12:14
Show Gist options
  • Save antonyc/d23faf2568989d234f1d46f9e94df768 to your computer and use it in GitHub Desktop.
Save antonyc/d23faf2568989d234f1d46f9e94df768 to your computer and use it in GitHub Desktop.
chapson quick paste
{"level":"INFO","ts":"2022-01-18T15:09:14.928+0300","message":"/api/v1/clusters/dawn-bush-342570/query","status":200,"method":"POST","path":"/api/v1/clusters/dawn-bush-342570/query","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":4.564781417,"time":"2022-01-18T12:09:14Z"}
{"level":"DEBUG","ts":"2022-01-18T15:09:14.957+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.001219,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}],"duration":0.001219,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}]}
{"level":"DEBUG","ts":"2022-01-18T15:09:14.957+0300","message":"authorized user id=34(ovgkfmgucv@example.com)","middleware":"authorize"}
{"level":"INFO","ts":"2022-01-18T15:09:14.977+0300","message":"/api/v1/clusters/dawn-bush-342570/roles/41/reset_password","status":200,"method":"POST","path":"/api/v1/clusters/dawn-bush-342570/roles/41/reset_password","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.021444333,"time":"2022-01-18T12:09:14Z"}
{"level":"DEBUG","ts":"2022-01-18T15:09:14.987+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.001076,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}],"duration":0.001076,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}]}
{"level":"DEBUG","ts":"2022-01-18T15:09:14.987+0300","message":"authorized user id=34(ovgkfmgucv@example.com)","middleware":"authorize"}
operation apply_config started
Stopping Docker container daaf2852bbdb92e69ecf8a78ba4a537ba2ddcc2ab9b81b4d3600ee62f787d53f
Removing Docker container daaf2852bbdb92e69ecf8a78ba4a537ba2ddcc2ab9b81b4d3600ee62f787d53f
Cluster.FinalizeState: active -> active
operation apply_config succeeded
Cannot start operation #114 on cluster #dawn-bush-342570, someone is holding the lock. We will try later if needed
{"status":"Pulling from zenithdb/compute-node","id":"latest"}
{"status":"Digest: sha256:cb740ed12865cbb81abbb0d79a97e2801aaab5a069effd4591d76f082ea7dedf"}
{"status":"Status: Image is up to date for zenithdb/compute-node:latest"}
Starting Docker container c7f27ffad6eb2ad13effac1807b8838f6269165378351e602c39143d67f17195
Waiting for Docker container c7f27ffad6eb2ad13effac1807b8838f6269165378351e602c39143d67f17195 to become ready on 127.0.0.1:63419
{"level":"DEBUG","ts":"2022-01-18T15:09:20.113+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.002766,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}],"duration":0.002766,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}]}
{"level":"DEBUG","ts":"2022-01-18T15:09:20.114+0300","message":"authorized user id=34(ovgkfmgucv@example.com)","middleware":"authorize"}
{"level":"INFO","ts":"2022-01-18T15:09:20.126+0300","message":"/api/v1/clusters","status":200,"method":"GET","path":"/api/v1/clusters","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.0154085,"time":"2022-01-18T12:09:20Z"}
{"level":"DEBUG","ts":"2022-01-18T15:09:20.136+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.004305,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}],"duration":0.004305,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":34}]}
{"level":"DEBUG","ts":"2022-01-18T15:09:20.137+0300","message":"authorized user id=34(ovgkfmgucv@example.com)","middleware":"authorize"}
Cannot start operation #115 on cluster #dawn-bush-342570, someone is holding the lock. We will try later if needed
{"level":"INFO","ts":"2022-01-18T15:09:20.166+0300","message":"/api/v1/clusters/dawn-bush-342570/delete","status":200,"method":"POST","path":"/api/v1/clusters/dawn-bush-342570/delete","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.033624458,"time":"2022-01-18T12:09:20Z"}
{"level":"INFO","ts":"2022-01-18T15:10:05.531+0300","message":"/api/v1/clusters/dawn-bush-342570/query","status":400,"method":"POST","path":"/api/v1/clusters/dawn-bush-342570/query","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":50.545200666,"time":"2022-01-18T12:10:05Z"}
Cluster.FinalizeState: active -> active
operation apply_config succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment