ragflow/rag/app
Michal Masrna c4f2464935 fix: laws.py added missing import logging (#3501)
### What problem does this PR solve?

_Choosing Laws Chunk Method results in an error when parsing a document.
The error is caused by a missing import in the `laws.py` file._

```
Traceback (most recent call last):
  File "/ragflow/rag/svr/task_executor.py", line 445, in handle_task
    do_handle_task(task)
  File "/ragflow/rag/svr/task_executor.py", line 384, in do_handle_task
    cks = build(r)
          ^^^^^^^^
  File "/ragflow/rag/svr/task_executor.py", line 196, in build
    cks = chunker.chunk(row["name"], binary=binary, from_page=row["from_page"],
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ragflow/rag/app/laws.py", line 161, in chunk
    for txt, poss in pdf_parser(filename if not binary else binary,
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/ragflow/rag/app/laws.py", line 124, in __call__
    logging.debug("layouts:".format(
    ^^^^^^^
NameError: name 'logging' is not defined. Did you forget to import 'logging'

```

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):

Co-authored-by: Michal Masrna <m.marna1@gmail.com>
2024-11-20 20:52:05 +08:00
..
__init__.py Some document API refined. (#53) 2024-02-02 19:21:37 +08:00
audio.py remove unused import (#2679) 2024-09-30 16:59:39 +08:00
book.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
email.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
knowledge_graph.py set DLA active for KG (#3386) 2024-11-13 16:59:19 +08:00
laws.py fix: laws.py added missing import logging (#3501) 2024-11-20 20:52:05 +08:00
manual.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
naive.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
one.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
paper.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
picture.py Format file format from Windows/dos to Unix (#1949) 2024-08-15 09:17:36 +08:00
presentation.py Integration with Infinity (#2894) 2024-11-12 14:59:41 +08:00
qa.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
resume.py Use consistent log file names, introduced initLogger (#3403) 2024-11-14 17:13:48 +08:00
table.py Integration with Infinity (#2894) 2024-11-12 14:59:41 +08:00