Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Db/BatchInsert.php')
-rw-r--r--core/Db/BatchInsert.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/Db/BatchInsert.php b/core/Db/BatchInsert.php
index cd339e215e..c7bc3184de 100644
--- a/core/Db/BatchInsert.php
+++ b/core/Db/BatchInsert.php
@@ -14,6 +14,7 @@ use Exception;
use Piwik\AssetManager;
use Piwik\Common;
use Piwik\Config;
+use Piwik\Log;
use Piwik\Db;
use Piwik\DbHelper;
use Piwik\Piwik;
@@ -93,7 +94,7 @@ class BatchInsert
return true;
}
} catch (Exception $e) {
- Piwik::log(sprintf("LOAD DATA INFILE failed or not supported, falling back to normal INSERTs... Error was: %s", $e->getMessage()));
+ Log::info("LOAD DATA INFILE failed or not supported, falling back to normal INSERTs... Error was: %s", $e->getMessage());
if ($throwException) {
throw $e;
@@ -187,7 +188,7 @@ class BatchInsert
$code = $e->getCode();
$message = $e->getMessage() . ($code ? "[$code]" : '');
if (!Db::get()->isErrNo($e, '1148')) {
- Piwik::log(sprintf("LOAD DATA INFILE failed... Error was: %s", $message));
+ Log::info("LOAD DATA INFILE failed... Error was: %s", $message);
}
$exceptions[] = "\n Try #" . (count($exceptions) + 1) . ': ' . $queryStart . ": " . $message;
}