mirror of
https://github.com/friendica/friendica
synced 2025-04-25 17:50:11 +00:00
Add Monolog
This commit is contained in:
parent
518f28a7bf
commit
2e602afd3e
18 changed files with 736 additions and 164 deletions
|
@ -8,6 +8,7 @@ use Friendica\App;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Core\Update;
|
||||
use Friendica\Util\LoggerFactory;
|
||||
|
||||
// Get options
|
||||
$shortopts = 'sn';
|
||||
|
@ -28,7 +29,9 @@ if (!file_exists("boot.php") && (sizeof($_SERVER["argv"]) != 0)) {
|
|||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
|
||||
$a = new App(dirname(__DIR__));
|
||||
$logger = LoggerFactory::create('worker');
|
||||
|
||||
$a = new App(dirname(__DIR__), $logger);
|
||||
|
||||
// Check the database structure and possibly fixes it
|
||||
Update::check(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue