-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add logging of stream variables #468
Comments
If the variable is forwarded to SC it is possible to log them like this :) docker compose logs -f -t -n 10 sound > gps.log |
It would be cool to show the logs in general in some kind within the editor. |
Maybe it is possible to add a watcher to our sclogs which pumps them into our database. |
This is way harder than I thought it would be. Currently there are two problems a) If the log is yield in an async context it is not possible to push it into the database as the db connection requires a sync environment. Wrapping this requires a There is a blog entry https://rob-blackbourn.medium.com/how-to-use-python-logging-queuehandler-with-dictconfig-1e8b1284e27a which describes how to setup django using a Queue Handler Also taking a look at the sentry sdk could be interesting as they sufffer from the same problem? I found https://github.com/getsentry/sentry-python/blob/026d6090247547637d4c607b95308b6271ab9dfc/sentry_sdk/integrations/django/asgi.py#L25-L42 but I still don't understand it fully. I think the best would be to setup a small test project to figure this out in an easy way. |
Maybe createa flag for a Graph. This does not need to be stored in the database but maybe in a file?
Originally posted by @capital-G in #6 (comment)
The text was updated successfully, but these errors were encountered: