fix: disable ChurchTools API file logging to prevent vendor/ write errors
This commit is contained in:
parent
00bffab74f
commit
936d38ecdc
|
|
@ -4,6 +4,7 @@
|
||||||
|
|
||||||
use CTApi\CTClient;
|
use CTApi\CTClient;
|
||||||
use CTApi\CTConfig;
|
use CTApi\CTConfig;
|
||||||
|
use CTApi\CTLog;
|
||||||
use CTApi\Models\Events\Event\EventRequest;
|
use CTApi\Models\Events\Event\EventRequest;
|
||||||
use CTApi\Models\Events\Song\Song;
|
use CTApi\Models\Events\Song\Song;
|
||||||
use CTApi\Utils\CTResponseUtil;
|
use CTApi\Utils\CTResponseUtil;
|
||||||
|
|
@ -32,6 +33,7 @@ public static function run(
|
||||||
|
|
||||||
CTConfig::clearConfig();
|
CTConfig::clearConfig();
|
||||||
CTConfig::setApiUrl(rtrim($apiUrl, '/'));
|
CTConfig::setApiUrl(rtrim($apiUrl, '/'));
|
||||||
|
CTLog::enableFileLog(false);
|
||||||
|
|
||||||
$legacyApiKeySetter = 'setApiKey';
|
$legacyApiKeySetter = 'setApiKey';
|
||||||
$authMethod = 'raw-http-authorization-header';
|
$authMethod = 'raw-http-authorization-header';
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,8 @@ public function __construct(
|
||||||
private readonly ?Closure $songFetcher = null,
|
private readonly ?Closure $songFetcher = null,
|
||||||
private readonly ?Closure $agendaFetcher = null,
|
private readonly ?Closure $agendaFetcher = null,
|
||||||
private readonly ?Closure $eventServiceFetcher = null,
|
private readonly ?Closure $eventServiceFetcher = null,
|
||||||
) {}
|
) {
|
||||||
|
}
|
||||||
|
|
||||||
public function sync(): array
|
public function sync(): array
|
||||||
{
|
{
|
||||||
|
|
@ -336,6 +337,7 @@ private function configureApi(): void
|
||||||
|
|
||||||
CTConfig::setApiUrl(rtrim($apiUrl, '/'));
|
CTConfig::setApiUrl(rtrim($apiUrl, '/'));
|
||||||
CTConfig::setApiKey($apiToken);
|
CTConfig::setApiKey($apiToken);
|
||||||
|
CTLog::enableFileLog(false);
|
||||||
|
|
||||||
$this->apiConfigured = true;
|
$this->apiConfigured = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue