mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Merge branch 'master' of https://github.com/liu21st/think
This commit is contained in:
@@ -39,6 +39,7 @@ class Slog
|
||||
|
||||
public static function sql($sql, $pdo)
|
||||
{
|
||||
|
||||
if (is_object($pdo)) {
|
||||
if (!self::check()) {
|
||||
return;
|
||||
@@ -58,9 +59,10 @@ class Slog
|
||||
}
|
||||
self::sqlwhere($sql, $css);
|
||||
self::trace($sql, 2, $css);
|
||||
}else{
|
||||
throw new Exception('SocketLog can not support this database link');
|
||||
}
|
||||
|
||||
throw new Exception('SocketLog can not support this database link');
|
||||
}
|
||||
|
||||
public static function trace($msg, $trace_level = 2, $css = '')
|
||||
|
||||
Reference in New Issue
Block a user