Changeset 20671


Ignore:
Timestamp:
2011/03/16 21:36:01 (10 years ago)
Author:
nanasess
bzr:base-revision:
ohkouchi@loop-az.jp-20110316121103-en8ikdznvbggaybj
bzr:committer:
Kentaro Ohkouchi <ohkouchi@loop-az.jp>
bzr:file-ids:

data/class/SC_Query.php 15078@1e3b908f-19a9-db11-a64c-001125224ba8:branches%2Ffeature-module-update%2Fdata%2Fclass%2FSC_Query.php
bzr:mapping-version:
v4
bzr:merge:

ohkouchi@loop-az.jp-20110316123443-esupxo3gsc6kiph3
bzr:repository-uuid:
1e3b908f-19a9-db11-a64c-001125224ba8
bzr:revision-id:
ohkouchi@loop-az.jp-20110316123558-efhu9u2sn9lcx1q2
bzr:revno:
3391
bzr:revprop:branch-nick:
branches/version-2_5-dev
bzr:root:
branches/version-2_5-dev
bzr:text-revisions:

data/class/SC_Query.php ohkouchi@loop-az.jp-20110316123443-esupxo3gsc6kiph3
bzr:timestamp:
2011-03-16 21:35:58.923000097 +0900
bzr:user-agent:
bzr2.2.1+bzr-svn1.0.4
svn:original-date:
2011-03-16T12:35:58.923000Z
Message:

#1001 (ログローテーションでFatal errorが出ている)

  • error_log 関数を使用するよう修正
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/SC_Query.php

    r20635 r20671  
    893893            $timeExecTime = $timeEnd - $timeStart; 
    894894            if(defined('SQL_QUERY_LOG_MIN_EXEC_TIME') && $timeExecTime >= (float)SQL_QUERY_LOG_MIN_EXEC_TIME) { 
    895                 //$logMsg = sprintf("SQL_LOG [%.2fsec]\n%s", $timeExecTime, $this->getLastQuery(false)); 
    896895                $logMsg = sprintf("SQL_LOG [%.2fsec]\n%s", $timeExecTime, $sth->query); 
    897                 GC_Utils_Ex::gfPrintLog($logMsg); 
     896                error_log($logMeg, 3, LOG_REALFILE); 
    898897            } 
    899898        } 
Note: See TracChangeset for help on using the changeset viewer.