Add Specter log

This commit is contained in:
Taylor Helsper 2021-03-26 20:42:21 -05:00
parent 14b37cf92e
commit 2db3d73c74
2 changed files with 17 additions and 0 deletions

View File

@ -246,6 +246,9 @@ def page_status():
"caravan_status_log": get_journalctl_log("caravan"), "caravan_status_log": get_journalctl_log("caravan"),
"caravan_status": get_service_status_basic_text("caravan"), "caravan_status": get_service_status_basic_text("caravan"),
"caravan_status_color": get_service_status_color("caravan"), "caravan_status_color": get_service_status_color("caravan"),
"specter_status_log": get_journalctl_log("specter"),
"specter_status": get_service_status_basic_text("specter"),
"specter_status_color": get_service_status_color("specter"),
"nginx_status_log": get_journalctl_log("nginx"), "nginx_status_log": get_journalctl_log("nginx"),
"nginx_status": get_service_status_basic_text("nginx"), "nginx_status": get_service_status_basic_text("nginx"),
"nginx_status_color": get_service_status_color("nginx"), "nginx_status_color": get_service_status_color("nginx"),

View File

@ -111,6 +111,11 @@
$("#ckbunker_status").show(); $("#ckbunker_status").show();
}); });
$("#show_specter_status").on("click", function() {
$("#show_specter_status").hide(0);
$("#specter_status").show();
});
$("#show_sphinxrelay_status").on("click", function() { $("#show_sphinxrelay_status").on("click", function() {
$("#show_sphinxrelay_status").hide(0); $("#show_sphinxrelay_status").hide(0);
$("#sphinxrelay_status").show(); $("#sphinxrelay_status").show();
@ -411,6 +416,15 @@
<div id="ckbunker_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{ckbunker_status_log}}</pre></div> <div id="ckbunker_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{ckbunker_status_log}}</pre></div>
<div class="divider"></div> <div class="divider"></div>
<div class="settings_block_subheader">Specter Status</div>
<div class="settings_block_subheader_status">
<div class="settings_block_subheader_status_icon {{ specter_status_color }}"></div>
{{ specter_status }}
</div>
<button id="show_specter_status" class="ui-button ui-widget ui-corner-all settings_button_small">Show Log</button>
<div id="specter_status" style='text-align: left; font-size: 12px; width: 800px; display: none;'><pre>{{specter_status_log}}</pre></div>
<div class="divider"></div>
{% if lnd_wallet_exists %} {% if lnd_wallet_exists %}
<div class="settings_block_subheader">Sphinx Relay Status</div> <div class="settings_block_subheader">Sphinx Relay Status</div>
<div class="settings_block_subheader_status"> <div class="settings_block_subheader_status">