diff options
author | crownedgrouse <[email protected]> | 2013-10-27 02:36:49 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2015-02-19 13:25:19 +0100 |
commit | 6fe02e14d95e849d55d37d5449e835bcb8753da2 (patch) | |
tree | 2a8c5b24257fcc25c6a52c4420c72b58a77ae534 /lib/observer/src/observer_html_lib.erl | |
parent | ef029376067280869683776fc616f8514a2ff81a (diff) | |
download | otp-6fe02e14d95e849d55d37d5449e835bcb8753da2.tar.gz otp-6fe02e14d95e849d55d37d5449e835bcb8753da2.tar.bz2 otp-6fe02e14d95e849d55d37d5449e835bcb8753da2.zip |
observer: Add SASL log view for processes
Add a new menu to toggle log view.
Disabled by default.
Disabled if rb_server already started on observed node,
in order not to interfere with somebody else.
If enabled, add a tab in process view where log entries
related to pid process are shown.
Need an observed node with at least a version R16B2,
due to the use of newly capability to rb to write into
a file descriptor (on the observing node).
Diffstat (limited to 'lib/observer/src/observer_html_lib.erl')
-rw-r--r-- | lib/observer/src/observer_html_lib.erl | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/observer/src/observer_html_lib.erl b/lib/observer/src/observer_html_lib.erl index c279218707..53197078cf 100644 --- a/lib/observer/src/observer_html_lib.erl +++ b/lib/observer/src/observer_html_lib.erl @@ -60,7 +60,8 @@ expandable_term_body(Heading,[],_Tab) -> "StackDump" -> "No stack dump was found"; "Dictionary" -> "No dictionary was found"; "ProcState" -> "Information could not be retrieved," - " system messages may not be handled by this process." + " system messages may not be handled by this process."; + "SaslLog" -> "No log entry was found" end]; expandable_term_body(Heading,Expanded,Tab) -> Attr = "BORDER=0 CELLPADDING=0 CELLSPACING=1 WIDTH=100%", @@ -102,7 +103,10 @@ expandable_term_body(Heading,Expanded,Tab) -> element(1, lists:mapfoldl(fun(Entry, Even) -> {proc_state(Tab, Entry,Even), not Even} - end, true, Expanded))]); + end, true, Expanded))]); + "SaslLog" -> + table(Attr, + [tr("BGCOLOR=white",[td("ALIGN=left", pre(href_proc_port(Expanded)))])]) ; _ -> table(Attr, [tr( |