amon fixes
[contractdashboard.git] / lib / common.inc.php
blob:a/lib/common.inc.php -> blob:b/lib/common.inc.php
--- a/lib/common.inc.php
+++ b/lib/common.inc.php
@@ -15,9 +15,9 @@
     $basePath = "../";

 }

 require $basePath."lib/amon-php/amon.php";

-Amon::config(array('address'=> 'http://127.0.0.1:2465', 

+Amon::config(array('address'=> 'http://127.0.0.1:2464', 

 		'protocol' => 'http', 

-		'secret_key' => "g99127n3lkzigg8ob2rllth97d1pb4sj"));

+		'secret_key' => "JBcSUdFOi5lK0vCjLjbHDpQamcBnRA4iV7QLaTADeDQ"));

 Amon::setup_exception_handler();

 

 require ROOT . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'lib' . DIRECTORY_SEPARATOR . 'openid.php';

@@ -54,7 +54,7 @@
 function databaseError($errMsg) {

     if ($errMsg[2] != "") {

         echo '<div class="alert-message error">';

-        Amon::log(print_r($errMsg, true), array('error'));

+        Amon::log(print_r($errMsg, true).print_r($_REQUEST, true).print_r($_SERVER, true), array('error'));

         die(print_r($errMsg, true));

         echo "</div>";

     }