|
@@ -40,7 +40,7 @@ class Log
|
|
public static function record($message, $lev = self::ERR)
|
|
public static function record($message, $lev = self::ERR)
|
|
{
|
|
{
|
|
$now = @date('Y-m-d H:i:s', time());
|
|
$now = @date('Y-m-d H:i:s', time());
|
|
- $pid = posix_getgid();
|
|
|
|
|
|
+ $pid = posix_getpid();
|
|
|
|
|
|
if($lev == self::WAIT_HANDLE) {
|
|
if($lev == self::WAIT_HANDLE) {
|
|
$level = 'WAIT_HANDLE';
|
|
$level = 'WAIT_HANDLE';
|