Skip to content

Commit

Permalink
Correction jLog
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Oct 19, 2023
1 parent dbfdcd8 commit 2c7772a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cadastre/classes/cadastreProfile.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public static function get($repository, $project, $layerName, $profile = 'cadast
}
}

// jLog::log(json_encode($profile));
// \jLog::log(json_encode($profile));
return $profile;
}

Expand All @@ -59,7 +59,7 @@ public static function getWithLayerId($repository, $project, $layerId, $profile
$profile = $qgisLayer->getDatasourceProfile(31);
}

// jLog::log(json_encode($profile));
// \jLog::log(json_encode($profile));
return $profile;
}

Expand Down
10 changes: 5 additions & 5 deletions cadastre/classes/lizmapCadastreRequest.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ protected function getcapabilities()
} catch (Exception $e) {
// if qgisprojects profile does not exist, or if there is an
// other error about the cache, let's log it
jLog::logEx($e, 'error');
\jLog::logEx($e, 'error');
}
// return cached data
if ($cached !== false) {
Expand All @@ -57,7 +57,7 @@ protected function getcapabilities()
$response = $this->request();

// Retry if 500 error ( hackish, but QGIS Server segfault sometimes with cache issue )
if ($code == 500) {
if ($response->code == 500) {
// Get remote data
$response = $this->request();
}
Expand Down Expand Up @@ -106,7 +106,7 @@ public function createPdf()
}

$querystring = $this->constructUrl();
// jLog::log( $querystring );
// \jLog::log( $querystring );
// Get remote data
list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring);

Expand Down Expand Up @@ -150,7 +150,7 @@ public function getPdf()
}

$querystring = $this->constructUrl();
// jLog::log($querystring);
// \jLog::log($querystring);
// Get remote data
list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring);

Expand Down Expand Up @@ -179,7 +179,7 @@ public function getHtml()
}

$querystring = $this->constructUrl();
// jLog::log($querystring);
// \jLog::log($querystring);
// Get remote data
list($data, $mime, $code) = lizmapProxy::getRemoteData($querystring);
$data = json_decode($data);
Expand Down

0 comments on commit 2c7772a

Please sign in to comment.