mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-17 18:51:50 +02:00
Compare commits
6 commits
daf9b627ac
...
252cf7d9c0
Author | SHA1 | Date | |
---|---|---|---|
252cf7d9c0 | |||
![]() |
8532688bab | ||
![]() |
f6a616f23b | ||
![]() |
3b961e6b90 | ||
![]() |
3a56f51e94 | ||
![]() |
9705e92052 |
1 changed files with 7 additions and 3 deletions
|
@ -20,6 +20,9 @@ from ..util import get_tessdata_dir, replace_control_chars
|
||||||
|
|
||||||
log = logging.getLogger(__name__)
|
log = logging.getLogger(__name__)
|
||||||
|
|
||||||
|
DOC_TO_PIXELS_LOG_START = "----- DOC TO PIXELS LOG START -----"
|
||||||
|
DOC_TO_PIXELS_LOG_END = "----- DOC TO PIXELS LOG END -----"
|
||||||
|
|
||||||
TIMEOUT_EXCEPTION = 15
|
TIMEOUT_EXCEPTION = 15
|
||||||
TIMEOUT_GRACE = 15
|
TIMEOUT_GRACE = 15
|
||||||
TIMEOUT_FORCE = 5
|
TIMEOUT_FORCE = 5
|
||||||
|
@ -356,13 +359,14 @@ class IsolationProvider(ABC):
|
||||||
debug_bytes = stderr.getvalue()
|
debug_bytes = stderr.getvalue()
|
||||||
debug_log = sanitize_debug_text(debug_bytes)
|
debug_log = sanitize_debug_text(debug_bytes)
|
||||||
|
|
||||||
incomplete = "(incomplete) " if stderr_thread.is_alive() else ""
|
incomplete = "(incomplete)\n" if stderr_thread.is_alive() else ""
|
||||||
|
|
||||||
log.info(
|
log.info(
|
||||||
"Conversion output (doc to pixels)\n"
|
"Conversion output (doc to pixels)\n"
|
||||||
f"----- DOC TO PIXELS LOG START {incomplete}-----\n"
|
f"{DOC_TO_PIXELS_LOG_START}\n"
|
||||||
f"{debug_log}" # no need for an extra newline here
|
f"{debug_log}" # no need for an extra newline here
|
||||||
"----- DOC TO PIXELS LOG END -----"
|
f"{incomplete}"
|
||||||
|
f"{DOC_TO_PIXELS_LOG_END}"
|
||||||
)
|
)
|
||||||
|
|
||||||
def start_stderr_thread(
|
def start_stderr_thread(
|
||||||
|
|
Loading…
Reference in a new issue