mirror of
https://github.com/markqvist/Reticulum.git
synced 2026-10-26 19:01:53 -04:00
Improved git command timeout logging
This commit is contained in:
parent
1a732ac1c1
commit
8d8af5e60a
1 changed files with 3 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ class NomadNetworkNode():
|
|||
TREE_ENTRIES_PER_PAGE = 1000
|
||||
COMMITS_PER_PAGE = 100
|
||||
SHOW_DIFF_BY_DEFAULT = True
|
||||
GIT_COMMAND_TIMEOUT = 5
|
||||
GIT_COMMAND_TIMEOUT = 8
|
||||
MAX_RENDER_WIDTH = 100
|
||||
USE_NERDFONTS = True
|
||||
|
||||
|
|
@ -863,6 +863,7 @@ class NomadNetworkNode():
|
|||
content = self.m_heading("Error", 2) + f"\nThe hash {commit_hash} does not refer to a commit.\n"
|
||||
return self.render_template(content, st=st)
|
||||
|
||||
except subprocess.TimeoutExpired: RNS.log(f"Git command execution timed out", RNS.LOG_WARNING)
|
||||
except Exception:
|
||||
content = self.m_heading("Error", 2) + "\nCould not verify commit object.\n"
|
||||
return self.render_template(content, st=st)
|
||||
|
|
@ -995,6 +996,7 @@ class NomadNetworkNode():
|
|||
|
||||
if head_result.returncode == 0: default_branch = head_result.stdout.strip().replace("refs/heads/", "")
|
||||
|
||||
except subprocess.TimeoutExpired: RNS.log(f"Git command execution timed out", RNS.LOG_WARNING)
|
||||
except Exception: pass
|
||||
|
||||
show_heads = not ref_type or ref_type == "heads"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue