better amon db error logging
better amon db error logging

--- a/lib/common.inc.php
+++ b/lib/common.inc.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>";

     }