From cba6e942e7442bd62eb7dd0ab1e170cdf93cccc6 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 6 May 2009 23:29:32 +0000 Subject: [PATCH] Restore log on 1 data directory. The log is a technical information on Dolibarr to know how dolibarr system works so it is absolutely necessary that there is one and only one log file. Technical information must not be split using business informations. --- mysql/data/data.sql | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/mysql/data/data.sql b/mysql/data/data.sql index e60360768db..251592392b4 100644 --- a/mysql/data/data.sql +++ b/mysql/data/data.sql @@ -59,16 +59,14 @@ insert into llx_action_def (rowid,code,titre,description,objet_type) values (3,' insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_NOT_INSTALLED','1','chaine','Setup is running',1,0); insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_FEATURES_LEVEL','0','chaine','Level of features to show (0=stable only, 1=stable+experimental, 2=stable+experimental+development',1,0); --- Hidden in misc page -insert into llx_const (name, value, type, note, visible) values ('MAIN_MONNAIE','EUR','chaine','Monnaie',0); +-- Hidden and common to entities insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_POPUP_CALENDAR','eldy','chaine','Popup calendar module',0,0); -insert into llx_const (name, value, type, note, visible) values ('SYSLOG_FILE','DOL_DATA_ROOT/dolibarr.log','chaine','Directory where to write log file',0); -insert into llx_const (name, value, type, note, visible) values ('SYSLOG_LEVEL','6','chaine','Level of debug info to show',0); +insert into llx_const (name, value, type, note, visible, entity) values ('SYSLOG_FILE','DOL_DATA_ROOT/dolibarr.log','chaine','Directory where to write log file',0,0); +insert into llx_const (name, value, type, note, visible, entity) values ('SYSLOG_LEVEL','6','chaine','Level of debug info to show',0,0); insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_MAIL_SMTP_SERVER','','chaine','Host or ip address for SMTP server',0,0); insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_MAIL_SMTP_PORT','','chaine','Port for SMTP server',0,0); -insert into llx_const (name, value, type, note, visible) values ('MAIN_MAIL_EMAIL_FROM','dolibarr-robot@domain.com','chaine','EMail emetteur pour les emails automatiques Dolibarr',0); insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_UPLOAD_DOC','2048','chaine','Max size for file upload (0 means no upload allowed)',0,0); @@ -79,6 +77,9 @@ insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_S insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_CONFIRM_AJAX','0','chaine','Use Ajax popup to make confirmations',0,0); +-- Hidden but specific to one entity +insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_MONNAIE','EUR','chaine','Monnaie',0,1); +insert into llx_const (name, value, type, note, visible, entity) values ('MAIN_MAIL_EMAIL_FROM','dolibarr-robot@domain.com','chaine','EMail emetteur pour les emails automatiques Dolibarr',0,1); -- -- IHM