|
@@ -29,7 +29,7 @@ class trans_wapper
|
|
|
} else {
|
|
|
$this->mMod->beginTransaction();
|
|
|
}
|
|
|
- Log::record("trans_wapper begin {$this->mName}");
|
|
|
+ Log::record("trans_wapper begin {$this->mName}",Log::DEBUG);
|
|
|
}
|
|
|
public function commit()
|
|
|
{
|
|
@@ -41,7 +41,7 @@ class trans_wapper
|
|
|
$this->mMod->commit();
|
|
|
}
|
|
|
$msg = sprintf("trans_wapper commit {$this->mName} use_time=%.6f",microtime(true) - $this->mStart);
|
|
|
- Log::record($msg);
|
|
|
+ Log::record($msg,Log::DEBUG);
|
|
|
}
|
|
|
public function rollback()
|
|
|
{
|
|
@@ -53,14 +53,14 @@ class trans_wapper
|
|
|
$this->mMod->commit();
|
|
|
}
|
|
|
$msg = sprintf("trans_wapper rollback {$this->mName} use_time=%.6f",microtime(true) - $this->mStart);
|
|
|
- Log::record($msg);
|
|
|
+ Log::record($msg,Log::DEBUG);
|
|
|
}
|
|
|
|
|
|
public function __destruct()
|
|
|
{
|
|
|
if($this->mState <= 1) {
|
|
|
$msg = sprintf("trans_wapper uncommit or unrollback {$this->mName} state={$this->mState} use_time=%.6f",microtime(true) - $this->mStart);
|
|
|
- Log::record($msg);
|
|
|
+ Log::record($msg,Log::ERR);
|
|
|
}
|
|
|
}
|
|
|
}
|