Minor improvements (#324)

* Minor improvements

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2023-10-20 21:35:08 +07:00 committed by GitHub
parent 9071617b9f
commit 2ea357b63b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 17 additions and 9 deletions

View File

@ -10,7 +10,7 @@
- Release v2.1.5-2023.10 🎉
- Updated utf8 & reflection type hint classes [\#320](https://github.com/torrentpier/torrentpier-lts/pull/320) ([belomaxorka](https://github.com/belomaxorka))
- Updated Text_LangCorrect class [\#309](https://github.com/torrentpier/torrentpier-lts/pull/309) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313), [\#315](https://github.com/torrentpier/torrentpier-lts/pull/315), [\#316](https://github.com/torrentpier/torrentpier-lts/pull/316), [\#317](https://github.com/torrentpier/torrentpier-lts/pull/317), [\#319](https://github.com/torrentpier/torrentpier-lts/pull/319), [\#321](https://github.com/torrentpier/torrentpier-lts/pull/321), [\#322](https://github.com/torrentpier/torrentpier-lts/pull/322), [\#323](https://github.com/torrentpier/torrentpier-lts/pull/323) ([belomaxorka](https://github.com/belomaxorka))
- Minor improvements [\#297](https://github.com/torrentpier/torrentpier-lts/pull/297), [\#298](https://github.com/torrentpier/torrentpier-lts/pull/298), [\#300](https://github.com/torrentpier/torrentpier-lts/pull/300), [\#301](https://github.com/torrentpier/torrentpier-lts/pull/301), [\#302](https://github.com/torrentpier/torrentpier-lts/pull/302), [\#303](https://github.com/torrentpier/torrentpier-lts/pull/303), [\#305](https://github.com/torrentpier/torrentpier-lts/pull/305), [\#306](https://github.com/torrentpier/torrentpier-lts/pull/306), [\#307](https://github.com/torrentpier/torrentpier-lts/pull/307), [\#310](https://github.com/torrentpier/torrentpier-lts/pull/310), [\#312](https://github.com/torrentpier/torrentpier-lts/pull/312), [\#313](https://github.com/torrentpier/torrentpier-lts/pull/313), [\#315](https://github.com/torrentpier/torrentpier-lts/pull/315), [\#316](https://github.com/torrentpier/torrentpier-lts/pull/316), [\#317](https://github.com/torrentpier/torrentpier-lts/pull/317), [\#319](https://github.com/torrentpier/torrentpier-lts/pull/319), [\#321](https://github.com/torrentpier/torrentpier-lts/pull/321), [\#322](https://github.com/torrentpier/torrentpier-lts/pull/322), [\#323](https://github.com/torrentpier/torrentpier-lts/pull/323), [\#324](https://github.com/torrentpier/torrentpier-lts/pull/324) ([belomaxorka](https://github.com/belomaxorka))
## [v2.1.5-2023.09](https://github.com/torrentpier/torrentpier-lts/tree/v2.1.5-2023.09) (2023-10-04)
[Full Changelog](https://github.com/torrentpier/torrentpier-lts/compare/v2.1.5-2023.08-HotFix...v2.1.5-2023.09)

View File

@ -136,7 +136,7 @@ class sql_db
$this->log_error();
if (DBG_LOG_TRACKER)
{
dbg_log("Could not connect to {$this->engine} server {$this->cfg['dbhost']}", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . time());
dbg_log("Could not connect to {$this->engine} server '{$this->cfg['dbhost']}'", "{$this->cfg['dbhost']}-DB-connect-FAIL_" . time());
}
}

View File

@ -38,7 +38,9 @@ class cache_memcache extends cache_common
if (!$this->connected && $this->cfg['con_required'])
{
$con_error = "Could not connect to {$this->engine} server";
$server = (DBG_USER) ? "'" . $this->cfg['host'] . "'" : '';
header("HTTP/1.0 503 Service Unavailable");
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)
{
@ -102,4 +104,4 @@ class cache_memcache extends cache_common
{
return class_exists('Memcache');
}
}
}

View File

@ -38,7 +38,9 @@ class cache_redis extends cache_common
if (!$this->connected && $this->cfg['con_required'])
{
$con_error = "Could not connect to {$this->engine} server";
$server = (DBG_USER) ? "'" . $this->cfg['host'] . "'" : '';
header("HTTP/1.0 503 Service Unavailable");
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)
{

View File

@ -100,7 +100,7 @@ class sql_db
if (!$link = @$connect_type($this->cfg['dbhost'], $this->cfg['dbuser'], $this->cfg['dbpasswd']))
{
$server = (DBG_USER) ? $this->cfg['dbhost'] : '';
$server = (DBG_USER) ? "'" . $this->cfg['dbhost'] . "'" : '';
header("HTTP/1.0 503 Service Unavailable");
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)

View File

@ -37,7 +37,9 @@ class datastore_memcache extends datastore_common
if (!$this->connected && $this->cfg['con_required'])
{
$con_error = "Could not connect to {$this->engine} server";
$server = (DBG_USER) ? "'" . $this->cfg['host'] . "'" : '';
header("HTTP/1.0 503 Service Unavailable");
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)
{
@ -105,4 +107,4 @@ class datastore_memcache extends datastore_common
{
return class_exists('Memcache');
}
}
}

View File

@ -37,7 +37,9 @@ class datastore_redis extends datastore_common
if (!$this->connected && $this->cfg['con_required'])
{
$con_error = "Could not connect to {$this->engine} server";
$server = (DBG_USER) ? "'" . $this->cfg['host'] . "'" : '';
header("HTTP/1.0 503 Service Unavailable");
$con_error = "Could not connect to {$this->engine} server $server";
if (DBG_LOG)
{