Javascript logging enabled only in debug mode
This commit is contained in:
parent
ccfbdbd9f5
commit
5fc168987d
|
@ -1,4 +1,4 @@
|
|||
hedera-web (1.406.62) stable; urgency=low
|
||||
hedera-web (1.406.63) stable; urgency=low
|
||||
|
||||
* Initial Release.
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ Hedera.Home = new Class({
|
|||
Extends: Hedera.Form
|
||||
|
||||
,onStartOrderClick: function() {
|
||||
this.hash.set({'form': 'ecomerce/catalog'});
|
||||
this.hash.set({form: 'ecomerce/catalog'});
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
@ -4,10 +4,8 @@ var Gui = require('./gui');
|
|||
|
||||
module.exports = new Class({
|
||||
Extends: Vn.Object,
|
||||
Properties:
|
||||
{
|
||||
conn:
|
||||
{
|
||||
Properties: {
|
||||
conn: {
|
||||
type: Db.Connection
|
||||
,get: function() {
|
||||
return this._conn;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "hedera-web",
|
||||
"version": "1.406.62",
|
||||
"version": "1.406.63",
|
||||
"description": "Verdnatura web page",
|
||||
"license": "GPL-3.0",
|
||||
"repository": {
|
||||
|
|
|
@ -10,7 +10,9 @@ class Log extends Vn\Web\JsonRequest {
|
|||
,'stack'
|
||||
];
|
||||
|
||||
function run($db) {
|
||||
function run($db) {
|
||||
if (!_ENABLE_DEBUG) return TRUE;
|
||||
|
||||
$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'guest';
|
||||
$message = $_REQUEST['message'];
|
||||
$file = $_REQUEST['file'];
|
||||
|
|
Loading…
Reference in New Issue