mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 23:02: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)
|
public static function sql($sql, $pdo)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (is_object($pdo)) {
|
if (is_object($pdo)) {
|
||||||
if (!self::check()) {
|
if (!self::check()) {
|
||||||
return;
|
return;
|
||||||
@@ -58,9 +59,10 @@ class Slog
|
|||||||
}
|
}
|
||||||
self::sqlwhere($sql, $css);
|
self::sqlwhere($sql, $css);
|
||||||
self::trace($sql, 2, $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 = '')
|
public static function trace($msg, $trace_level = 2, $css = '')
|
||||||
|
|||||||
Reference in New Issue
Block a user