瀏覽代碼

updated wps debug log

Piotr Labudda 8 年之前
父節點
當前提交
befe01b710
共有 1 個文件被更改,包括 5 次插入4 次删除
  1. 5 4
      SE/wps.php

+ 5 - 4
SE/wps.php

@@ -53,14 +53,15 @@ if ('/xml/wfs' == substr($taskPath, 0, 8)) {
 	$taskPath = "/xml/wfsQgis/" . substr($taskPath, 9);
 }
 
-$api = new Api();
-$api->setUser($apiUser);
-$apiBaseUri = Request::getScriptUri();
-$api->setBaseUri($apiBaseUri);// TODO: RMME - replaced with Api_WfsNs::getBaseWfsUri();
 try {
+	$api = new Api();
+	$api->setUser($apiUser);
+	$apiBaseUri = Request::getScriptUri();
+	$api->setBaseUri($apiBaseUri);// TODO: RMME - replaced with Api_WfsNs::getBaseWfsUri();
 	$api->execute($taskPath);
 }
 catch (HttpException $e) {
+	DBG::log($e);
 	Http::sendHeaderByCode($e->getCode());
 	echo $e->getMessage();
 }