Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion app/inc/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use Monolog\Formatter\LineFormatter;
use Monolog\Handler\StreamHandler;
use Monolog\Level;
use Monolog\Logger;

// We always work with UTF8 encoding
Expand Down Expand Up @@ -38,7 +39,7 @@
$logger = new Logger(VERSION);
$handler = new StreamHandler(INSTALL_ROOT . 'logs/transvision.log');
$handler->setFormatter(new LineFormatter(null, null, false, true));
$logger->pushHandler($handler, Logger::DEBUG);
$logger->pushHandler($handler, Level::Debug);

// Create a Search object with default values available everywhere
$search = new Search;
Expand Down
4 changes: 2 additions & 2 deletions app/inc/search_counter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
$stats[$locale] = array_key_exists($locale, $stats) ? $stats[$locale] += 1 : 1;
$json_data->saveFile($stats, $local_filename);
} else {
$logger->addError('stats_locales.json exists but couldn\'t extract a valid array from JSON');
$logger->error('stats_locales.json exists but couldn\'t extract a valid array from JSON');
}

// Create a JSON file logging search options to determine if some are unused
Expand All @@ -47,6 +47,6 @@
$json_data->saveFile($stats, $local_filename);
}
} else {
$logger->addError('stats_requests.json exists but couldn\'t extract a valid array from JSON');
$logger->error('stats_requests.json exists but couldn\'t extract a valid array from JSON');
}
unset($stats);
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

"require": {
"gettext/gettext": "~5.7",
"monolog/monolog" : "~3.7",
"monolog/monolog" : "~3.9",
"mozillal10n/bugzilla": "~0.1",
"mozillal10n/cache": "~0.1",
"mozillal10n/json": "~0.1",
Expand Down