diff options
author | Keuin <[email protected]> | 2023-06-03 15:58:47 +0800 |
---|---|---|
committer | Keuin <[email protected]> | 2023-06-03 15:58:47 +0800 |
commit | d22440444c055dc5b921d453d82df5e38700aa1e (patch) | |
tree | 80902a9f80da563e9a7791200028e4c7d604798f | |
parent | d845692816079cf78ded919bc1175647576d8529 (diff) |
Remove useless logs
-rw-r--r-- | texgen.py | 3 | ||||
-rw-r--r-- | web.py | 2 |
2 files changed, 0 insertions, 5 deletions
@@ -59,9 +59,6 @@ class TexGenerator: await asyncio.wait_for(proc.wait(), timeout=10) except TimeoutError: raise TexGenerationError('xelatex timed out') - stdout, stderr = [(await x.read()).decode() for x in (proc.stdout, proc.stderr)] - print('STDOUT', stdout) - print('STDERR', stderr) if proc.returncode != 0: raise TexGenerationError(f'xelatex process exited with non-zero code {proc.returncode}') os.rename(os.path.join(workdir, f'{job_name}.pdf'), cache_file_path) @@ -20,9 +20,7 @@ html_cache = htmlcache.HtmlCache('html_cache') @app.get("/utaten/{item_id}.pdf") async def get_utaten_lyric_pdf(item_id: str): try: - print('_get_utaten_tex_source') tex = await html_cache.get_utaten_tex_source(item_id) - print('xelatex') pdf_path = await tex_generator.xelatex(tex) return FileResponse(pdf_path, media_type='application/pdf') except texgen.TexGenerationError as e: |