Skip to content

Commit

Permalink
Append debug lines for build commands
Browse files Browse the repository at this point in the history
  • Loading branch information
naoh16 committed Sep 7, 2024
1 parent 6604b33 commit b69ebd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jupyterlab_latex/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def run_latex(self, command_sequence):
"""

for cmd in command_sequence:
self.log.debug(f'jupyterlab-latex: run: {" ".join(cmd)} (CWD: {os.getcwd()})')

code, output = yield run_command(cmd)
if code != 0:
self.set_status(500)
Expand All @@ -183,6 +185,9 @@ def get(self, path = ''):
tex_base_name, ext = os.path.splitext(os.path.basename(tex_file_path))
c = LatexConfig(config=self.config)

self.log.debug((f"jupyterlab-latex: get: path=({path}), "
f"CWD=({os.getcwd()}), root_dir=({self.serverapp.root_dir})"))

if not os.path.exists(tex_file_path):
self.set_status(403)
out = f"Request cannot be completed; no file at `{tex_file_path}`."
Expand Down
1 change: 1 addition & 0 deletions jupyterlab_latex/synctex.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ def run_synctex(self, cmd):
there.
"""
self.log.debug(f'jupyterlab-latex: run: {" ".join(cmd)} (CWD: {os.getcwd()})')
code, output = yield run_command(cmd)
if code != 0:
self.set_status(500)
Expand Down

0 comments on commit b69ebd8

Please sign in to comment.