Skip to content

Commit

Permalink
Avoid logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 18, 2023
1 parent 1257c05 commit 1b74a87
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/MTProto.php
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,6 @@ public function getConfig(array $config = []): array
$this->config = empty($config) ? $this->methodCallAsyncRead('help.getConfig', $config) : $config;
$this->parseConfig();
$this->logger->logger(Lang::$current_lang['config_updated'], Logger::NOTICE);
$this->logger->logger($this->config, Logger::NOTICE);
return $this->config;
}
/**
Expand Down
1 change: 1 addition & 0 deletions src/MTProtoTools/Files.php
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,7 @@ private function downloadPart(array &$messageMedia, bool &$cdn, int &$datacenter
continue;
} elseif ($res['_'] === 'upload.cdnFileReuploadNeeded') {
$this->logger->logger(Lang::$current_lang['cdn_reupload'], Logger::NOTICE);
$this->config['expires'] = 0;
$this->getConfig();
try {
$this->addCdnHashes($messageMedia['file_token'], $this->methodCallAsyncRead('upload.reuploadCdnFile', ['file_token' => $messageMedia['file_token'], 'request_token' => $res['request_token']], ['heavy' => true, 'datacenter' => $old_dc]));
Expand Down

0 comments on commit 1b74a87

Please sign in to comment.