Software / code / prosody
Comparison
plugins/mod_admin_shell.lua @ 13104:8c786880e28d
mod_admin_shell: Allow logging global events with debug:logevents("*")
Missing feature. It should behave like debug:events()
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sun, 14 May 2023 19:01:01 +0200 |
| parent | 13089:41598b7ec543 |
| child | 13105:7d9e26003b05 |
comparison
equal
deleted
inserted
replaced
| 13103:42c2a9787242 | 13104:8c786880e28d |
|---|---|
| 1925 end | 1925 end |
| 1926 | 1926 |
| 1927 def_env.debug = {}; | 1927 def_env.debug = {}; |
| 1928 | 1928 |
| 1929 function def_env.debug:logevents(host) | 1929 function def_env.debug:logevents(host) |
| 1930 helpers.log_host_events(host); | 1930 if host == "*" then |
| 1931 helpers.log_events(prosody.events); | |
| 1932 else | |
| 1933 helpers.log_host_events(host); | |
| 1934 end | |
| 1931 return true; | 1935 return true; |
| 1932 end | 1936 end |
| 1933 | 1937 |
| 1934 function def_env.debug:events(host, event) | 1938 function def_env.debug:events(host, event) |
| 1935 local events_obj; | 1939 local events_obj; |