Skip to content

Instantly share code, notes, and snippets.

@antonyc
Created January 18, 2022 09:22
Show Gist options
  • Save antonyc/926df815f1765e60ef7ec6ba193d7385 to your computer and use it in GitHub Desktop.
Save antonyc/926df815f1765e60ef7ec6ba193d7385 to your computer and use it in GitHub Desktop.
chapson quick paste
{"level":"INFO","ts":"2022-01-18T12:21:06.037+0300","message":"/api/v1/clusters/hidden-bar-265301","status":200,"method":"GET","path":"/api/v1/clusters/hidden-bar-265301","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.027429791,"time":"2022-01-18T09:21:06Z"}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.354+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.002187,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}],"duration":0.002187,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}]}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.354+0300","message":"authorized user id=10(wvueoevrga@example.com)","middleware":"authorize"}
{"level":"INFO","ts":"2022-01-18T12:21:06.373+0300","message":"/api/v1/clusters/hidden-bar-265301","status":200,"method":"GET","path":"/api/v1/clusters/hidden-bar-265301","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.020970334,"time":"2022-01-18T09:21:06Z"}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.417+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.002459,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}],"duration":0.002459,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}]}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.417+0300","message":"authorized user id=10(wvueoevrga@example.com)","middleware":"authorize"}
{"level":"INFO","ts":"2022-01-18T12:21:06.424+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.009452125,"time":"2022-01-18T09:21:06Z"}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.434+0300","message":"sql: query/select.users","middleware":"authorize","duration":0.002319,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}],"duration":0.002319,"db.host":"localhost:5432","db.database":"postgres","sql.action":"query","sql.statement":"SELECT * FROM users WHERE id = $1","sql.args":[{"Name":"","Ordinal":1,"Value":10}]}
{"level":"DEBUG","ts":"2022-01-18T12:21:06.434+0300","message":"authorized user id=10(wvueoevrga@example.com)","middleware":"authorize"}
{"level":"INFO","ts":"2022-01-18T12:21:06.456+0300","message":"/api/v1/clusters/hidden-bar-265301/delete","status":200,"method":"POST","path":"/api/v1/clusters/hidden-bar-265301/delete","query":"","ip":"::1","user-agent":"python-httpx/0.18.2","latency":0.024542625,"time":"2022-01-18T09:21:06Z"}
operation delete_compute started
Stopping Docker container ef044d49641fa812347af3be4da2b02d4e5cc8d524489b37bc449147169f54f3
Removing Docker container ef044d49641fa812347af3be4da2b02d4e5cc8d524489b37bc449147169f54f3
Cluster.FinalizeState: active -> init
!!!!! tried to set cluster state to invalid value !!!!!
operation delete_compute succeeded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment