Javascript logging enabled only in debug mode

This commit is contained in:
Juan Ferrer 2019-09-06 11:22:34 +02:00
parent ccfbdbd9f5
commit 5fc168987d
5 changed files with 8 additions and 8 deletions

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
hedera-web (1.406.62) stable; urgency=low
hedera-web (1.406.63) stable; urgency=low
* Initial Release.

View File

@ -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'});
}
});

View File

@ -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;

View File

@ -1,6 +1,6 @@
{
"name": "hedera-web",
"version": "1.406.62",
"version": "1.406.63",
"description": "Verdnatura web page",
"license": "GPL-3.0",
"repository": {

View File

@ -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'];