Changeset

11602:78ec0741c2bc

mod_admin_shell: module:info: Show module status
author Kim Alvefur <zash@zash.se>
date Sat, 12 Jun 2021 16:40:22 +0200
parents 11601:9483728f890f
children 11603:4e24408a3f57
files plugins/mod_admin_shell.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Sat Jun 12 16:50:15 2021 +0200
+++ b/plugins/mod_admin_shell.lua	Sat Jun 12 16:40:22 2021 +0200
@@ -417,6 +417,9 @@
 			print("on " .. component_type .. " Component " .. mod.module.host);
 		end
 		print("  path: " .. (mod.module.path or "n/a"));
+		if mod.module.status_message then
+			print("  status: [" .. mod.module.status_type .. "] " .. mod.module.status_message);
+		end
 	end
 	return true;
 end