加强调试信息

This commit is contained in:
thinkphp
2016-01-27 23:05:46 +08:00
parent cc753a884e
commit 7352655e36
4 changed files with 11 additions and 8 deletions

View File

@@ -120,7 +120,7 @@ class App
$reflect = new \ReflectionFunction($function);
$args = self::bindParams($reflect, $vars);
// 记录执行信息
Log::record('[ RUN ] ' . $reflect->getFileName(), 'info');
Log::record('[ RUN ] ' . $reflect->getFileName() . '[ ' . var_export($vars, true) . ' ]', 'info');
return $reflect->invokeArgs($args);
}
@@ -149,7 +149,7 @@ class App
}
$args = self::bindParams($reflect, $vars);
// 记录执行信息
Log::record('[ RUN ] ' . $reflect->getFileName(), 'info');
Log::record('[ RUN ] ' . $reflect->getFileName() . '[ ' . var_export($args, true) . ' ]', 'info');
return $reflect->invokeArgs(isset($class) ? $class : null, $args);
}