chore: Improve logging for sidecar#104
Conversation
@gjreda What do you think about creating a task that setup the sidecar with settings? This will be useful for sending paths ($APPDATA, ...) and also configurations (e.g. api keys). |
| logger.setLevel(logging.INFO) | ||
| handler = logging.FileHandler( | ||
| os.path.join( | ||
| os.environ.get("SIDECAR_LOG_DIR", "/tmp"), "refstudio-sidecar.log" |
There was a problem hiding this comment.
shouldn't we call it refstudio-sidecar-ingest.log instead?
There was a problem hiding this comment.
My intention is to have one unified log for the sidecar that includes both ingest and interactions.
Yea, I agree. I think we're starting to see a need for some sort of broader settings configuration that can be shared by front and back end. |
Temporarily logging to
/tmpfor now, but ideally we'd log this data in the $APPDATA directory. I don't think the sidecar has a way of knowing the $APPDATA path unless we pass it in.