Skip to content

Commit 3be0cfe

Browse files
author
Daniel Neto
committed
fix: Comment out debug error logging statements for cleaner output
1 parent a93ba83 commit 3be0cfe

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

objects/Object.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1336,7 +1336,7 @@ public function setAutoSuffix()
13361336
public function getCacheWithAutoSuffix($lifetime = 60)
13371337
{
13381338
$suffix = $this->getCacheSufix();
1339-
return parent::getCache($suffix, $lifetime, true);
1339+
return parent::getCache($suffix, $lifetime, false);
13401340
}
13411341

13421342
protected function getCacheSubdir()

objects/functions.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1883,10 +1883,10 @@ function url_get_contents_with_cache($url, $lifeTime = 60, $ctx = "", $timeout =
18831883
//_error_log('url_get_contents_with_cache cache');
18841884
return $cache;
18851885
}
1886-
_error_log("url_get_contents_with_cache no cache [$url] " . json_encode(debug_backtrace()));
1886+
//_error_log("url_get_contents_with_cache no cache [$url] " . json_encode(debug_backtrace()));
18871887
$return = url_get_contents($url, $ctx, $timeout, $debug, $mantainSession);
18881888
$response = ObjectYPT::setCacheGlobal($cacheName, $return);
1889-
_error_log("url_get_contents_with_cache setCache {$url} " . json_encode($response));
1889+
//_error_log("url_get_contents_with_cache setCache {$url} " . json_encode($response));
18901890
return $return;
18911891
}
18921892

@@ -7518,7 +7518,7 @@ function is_port_open($port, $address = '127.0.0.1', $timeout = 5)
75187518
fclose($socket);
75197519
return true;
75207520
}
7521-
_error_log("is_port_open($port, $address) error {$errstr}");
7521+
//_error_log("is_port_open($port, $address) error {$errstr}");
75227522
// If the socket connection failed, the port is closed
75237523
return false;
75247524
}

objects/video.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4412,7 +4412,7 @@ public static function getSourceFile($filename, $type = ".jpg", $includeS3 = fal
44124412
$video = Video::getVideoFromFileNameLight($cleanFileName);
44134413
TimeLogEnd($timeLog1, __LINE__, $timeLog1Limit);
44144414
if (empty($video)) {
4415-
_error_log("Video::getSourceFile($filename, $type, $includeS3) ERROR video not found ($cleanFileName)");
4415+
//_error_log("Video::getSourceFile($filename, $type, $includeS3) ERROR video not found ($cleanFileName)");
44164416
$VideoGetSourceFile[$cacheName] = false;
44174417
return false;
44184418
}

plugin/Cache/Objects/CachesInDB.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ public static function _deleteCacheStartingWith($name)
388388
//$sql = "DELETE FROM " . static::getTableName() . " WHERE name LIKE '{$name}%'";
389389
$sql = "DELETE FROM " . static::getTableName() . " WHERE MATCH(name) AGAINST('{$name}*' IN BOOLEAN MODE) OR name like '{$name}%';";
390390

391-
_error_log("CachesInDB::_deleteCacheStartingWith($name) SQL: $sql");
391+
//_error_log("CachesInDB::_deleteCacheStartingWith($name) SQL: $sql");
392392
$global['lastQuery'] = $sql;
393393
//_error_log("Delete Query: ".$sql);
394394
self::readUncomited();

plugin/Live/Live.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,7 +1367,7 @@ public function getStatsObject($live_servers_id = 0, $force_recreate = false, $t
13671367
}
13681368
//_error_log("Live::getStatsObject[$live_servers_id] 4: cache not found");
13691369
} else {
1370-
_error_log("Live::getStatsObject[$live_servers_id] 5: forced to be recreated");
1370+
//_error_log("Live::getStatsObject[$live_servers_id] 5: forced to be recreated");
13711371
}
13721372

13731373
$o = AVideoPlugin::getDataObject('Live');
@@ -1379,7 +1379,7 @@ public function getStatsObject($live_servers_id = 0, $force_recreate = false, $t
13791379
$cacheHandler->setCache($xml);
13801380

13811381
if (!empty($force_recreate) || !empty($_REQUEST['debug'])) {
1382-
_error_log("Live::getStatsObject[$live_servers_id] 5: forced to be recreated done " . json_encode(debug_backtrace()));
1382+
//_error_log("Live::getStatsObject[$live_servers_id] 5: forced to be recreated done " . json_encode(debug_backtrace()));
13831383
}
13841384
//var_dump(__LINE__, $xml);
13851385
$global['isStatsAccessible'][$live_servers_id] = !empty($xml);

0 commit comments

Comments
 (0)