Add logging for component requests when the module does not exist
refs #4456
This commit is contained in:
parent
7353797147
commit
6aca723f6d
|
@ -117,6 +117,9 @@ class StaticController extends ActionController
|
|||
$filePath = $basedir . $file;
|
||||
} else {
|
||||
if (!Icinga::app()->getModuleManager()->hasEnabled($module)) {
|
||||
Logger::error(
|
||||
'Non-existing frontend component "' . $module . '/' . $file
|
||||
. '" was requested. The module "' . $module . '" does not exist or is not active.');
|
||||
echo "/** Module not enabled **/";
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue