diff --git a/library/think/Loader.php b/library/think/Loader.php index c86b3c53..1e1caef5 100644 --- a/library/think/Loader.php +++ b/library/think/Loader.php @@ -56,6 +56,8 @@ class Loader $filename = $path . str_replace('\\', DS, $class) . EXT; if (is_file($filename)) { include $filename; + } elseif (APP_DEBUG) { + Log::record(' autoloader error : ' . $filename, 'notic'); } } }