LiamKhoaLe commited on
Commit
b0077fd
·
1 Parent(s): d86b8be

Rm non-valid log on save_to_textbook_fs db.py

Browse files
Files changed (1) hide show
  1. app/db.py +1 -1
app/db.py CHANGED
@@ -42,7 +42,7 @@ async def save_to_textbook_fs(doc_id: str, file_path: str):
42
  bucket = _get_textbook_fs()
43
  with open(file_path, "rb") as fp:
44
  await bucket.upload_from_stream(f"{doc_id}.pdf", fp)
45
- logger.info(f"📦 textbook PDF stored → {TEXTBOOK_URI}/{bucket.database.name}")
46
  except Exception as e:
47
  logger.warning(f"⚠️ textbook GridFS save failed: {e}")
48
 
 
42
  bucket = _get_textbook_fs()
43
  with open(file_path, "rb") as fp:
44
  await bucket.upload_from_stream(f"{doc_id}.pdf", fp)
45
+ logger.info(f"📦 textbook PDF stored for {doc_id} → {TEXTBOOK_URI}")
46
  except Exception as e:
47
  logger.warning(f"⚠️ textbook GridFS save failed: {e}")
48