Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Cannot see tracing logs #325

Closed
da-kami opened this issue Oct 14, 2021 · 0 comments · Fixed by #329
Closed

Cannot see tracing logs #325

da-kami opened this issue Oct 14, 2021 · 0 comments · Fixed by #329
Assignees
Labels
bug Something isn't working
Projects

Comments

@da-kami
Copy link
Contributor

da-kami commented Oct 14, 2021

We initialize maker and taker on DEBUG level, but debug logs are not printed properly.

Some recent change broke the logs - I remember we had this in xmr-btc at some point and had to instruct parts of the code for logging. Don't understand what caused this, until today morning I got all logs properly, now it looks like this:

Taker:

...
2021-10-14 20:24:34  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:24:34  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:24:39  INFO POST /api/cfd/order text/plain:    
2021-10-14 20:24:47  INFO POST /api/cfd/order text/plain:    
2021-10-14 20:24:47 ERROR Message handler failed: error returned from database: UNIQUE constraint failed: cfds.order_uuid: UNIQUE constraint failed: cfds.order_uuid
2021-10-14 20:24:58  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:24:59  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:25:02  INFO POST /api/cfd/order text/plain:    
2021-10-14 20:25:38  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:25:38  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:25:42  INFO POST /api/cfd/order text/plain:    
2021-10-14 20:34:55  INFO POST /api/cfd/order text/plain:    
2021-10-14 20:34:55 ERROR Message handler failed: error returned from database: UNIQUE constraint failed: cfds.order_uuid: UNIQUE constraint failed: cfds.order_uuid
2021-10-14 20:34:59  INFO POST /api/calculate/margin text/plain:    
2021-10-14 20:34:59  INFO POST /api/calculate/margin text/plain:  

Maker:

...
2021-10-14 20:21:59  WARN Shield (liftoff, response, singleton)    
2021-10-14 20:21:59  INFO 🛡️ Shield:    
2021-10-14 20:21:59  WARN 🚀 Rocket has launched from http://127.0.0.1:8001    
2021-10-14 20:24:28  INFO GET /api/feed text/event-stream:    
2021-10-14 20:24:33  INFO POST /api/order/sell application/json:    
2021-10-14 20:24:58  INFO POST /api/order/sell application/json:    
2021-10-14 20:24:59  INFO POST /api/order/sell application/json:    
2021-10-14 20:25:38  INFO POST /api/order/sell application/json:    
2021-10-14 20:34:59  INFO POST /api/order/sell application/json:  

Just don't see any messages from the cfd actors, so I have no clue what is going on 😅

@da-kami da-kami created this issue from a note in Product MVP (Up next) Oct 14, 2021
@da-kami da-kami added the bug Something isn't working label Oct 14, 2021
@bonomat bonomat self-assigned this Oct 14, 2021
@bors bors bot closed this as completed in 5030e2a Oct 14, 2021
Product MVP automation moved this from Up next to Done Oct 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

2 participants