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.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ Hedera.Home = new Class({
|
||||||
Extends: Hedera.Form
|
Extends: Hedera.Form
|
||||||
|
|
||||||
,onStartOrderClick: function() {
|
,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({
|
module.exports = new Class({
|
||||||
Extends: Vn.Object,
|
Extends: Vn.Object,
|
||||||
Properties:
|
Properties: {
|
||||||
{
|
conn: {
|
||||||
conn:
|
|
||||||
{
|
|
||||||
type: Db.Connection
|
type: Db.Connection
|
||||||
,get: function() {
|
,get: function() {
|
||||||
return this._conn;
|
return this._conn;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "hedera-web",
|
"name": "hedera-web",
|
||||||
"version": "1.406.62",
|
"version": "1.406.63",
|
||||||
"description": "Verdnatura web page",
|
"description": "Verdnatura web page",
|
||||||
"license": "GPL-3.0",
|
"license": "GPL-3.0",
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
@ -10,7 +10,9 @@ class Log extends Vn\Web\JsonRequest {
|
||||||
,'stack'
|
,'stack'
|
||||||
];
|
];
|
||||||
|
|
||||||
function run($db) {
|
function run($db) {
|
||||||
|
if (!_ENABLE_DEBUG) return TRUE;
|
||||||
|
|
||||||
$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'guest';
|
$user = isset($_SESSION['user']) ? $_SESSION['user'] : 'guest';
|
||||||
$message = $_REQUEST['message'];
|
$message = $_REQUEST['message'];
|
||||||
$file = $_REQUEST['file'];
|
$file = $_REQUEST['file'];
|
||||||
|
|
Loading…
Reference in New Issue