treygrainger / ai-powered-search

The codebase for the book "AI-Powered Search" (Manning Publications, 2024)
https://aipoweredsearch.com
152 stars 37 forks source link

Too many log messages in Jupyter lab #184

Open lucacerone opened 5 days ago

lucacerone commented 5 days ago

This was previously reported in https://github.com/treygrainger/ai-powered-search/issues/110 and supposedly fixed by https://github.com/treygrainger/ai-powered-search/pull/116 but I just cloned the repo and run docker compose up, and I see a lot of these logs.

aips-notebooks  | [I 2024-06-30 10:07:19.289 ServerApp] Generating new user for token-authenticated request: cbac40cb871047e69e17003b5457972d
aips-notebooks  | [I 2024-06-30 10:07:22.294 ServerApp] Saving file at /chapters/ch03/1.vectors-and-text-similarity.ipynb
aips-notebooks  | [I 2024-06-30 10:07:24.370 ServerApp] Generating new user for token-authenticated request: 697ae1b2d8f14a448f3bc9c1408c07cc
aips-notebooks  | [I 2024-06-30 10:07:29.448 ServerApp] Generating new user for token-authenticated request: e306de88469a44a2b8609ef4816a1025
aips-notebooks  | [I 2024-06-30 10:07:34.552 ServerApp] Generating new user for token-authenticated request: 9771d29d0071403c81f2b0022a455cab
aips-notebooks  | [I 2024-06-30 10:07:39.646 ServerApp] Generating new user for token-authenticated request: b23933a97f894ad99fe26a1eb67e7a64
aips-notebooks  | [I 2024-06-30 10:07:44.744 ServerApp] Generating new user for token-authenticated request: 407912f960db40c28911f3596a5547cf

I think that the fix wasn't applied when changing the structure of the repo: in the Dockerfile (https://github.com/treygrainger/ai-powered-search/blob/6148f7d0014eafb83532467ebb1abbffb2a8fddb/build/Dockerfile#L63) both tokens for NotebookApp and LabApp are empty, as opposed to some value (which is what fix #116 did)