Fix log of install disappear.
This commit is contained in:
parent
d967527b58
commit
937a27396f
@ -220,8 +220,8 @@ if (! defined('SYSLOG_FILE')) // To avoid warning on systems with constant alrea
|
|||||||
else if (@is_writable('../../../../') && @file_exists('../../../../startdoliwamp.bat')) define('SYSLOG_FILE','../../../../dolibarr_install.log'); // For DoliWamp
|
else if (@is_writable('../../../../') && @file_exists('../../../../startdoliwamp.bat')) define('SYSLOG_FILE','../../../../dolibarr_install.log'); // For DoliWamp
|
||||||
else if (@is_writable('../../')) define('SYSLOG_FILE','../../dolibarr_install.log'); // For others
|
else if (@is_writable('../../')) define('SYSLOG_FILE','../../dolibarr_install.log'); // For others
|
||||||
//print 'SYSLOG_FILE='.SYSLOG_FILE;exit;
|
//print 'SYSLOG_FILE='.SYSLOG_FILE;exit;
|
||||||
if (defined('SYSLOG_FILE')) $conf->global->SYSLOG_FILE=constant('SYSLOG_FILE');
|
|
||||||
}
|
}
|
||||||
|
if (defined('SYSLOG_FILE')) $conf->global->SYSLOG_FILE=constant('SYSLOG_FILE');
|
||||||
if (! defined('SYSLOG_FILE_NO_ERROR')) define('SYSLOG_FILE_NO_ERROR',1);
|
if (! defined('SYSLOG_FILE_NO_ERROR')) define('SYSLOG_FILE_NO_ERROR',1);
|
||||||
// We init log handler for install
|
// We init log handler for install
|
||||||
$handlers = array('mod_syslog_file');
|
$handlers = array('mod_syslog_file');
|
||||||
@ -326,8 +326,8 @@ function conf($dolibarr_main_document_root)
|
|||||||
else if (@is_writable('../../../../') && @file_exists('../../../../startdoliwamp.bat')) define('SYSLOG_FILE','../../../../dolibarr_install.log'); // For DoliWamp
|
else if (@is_writable('../../../../') && @file_exists('../../../../startdoliwamp.bat')) define('SYSLOG_FILE','../../../../dolibarr_install.log'); // For DoliWamp
|
||||||
else if (@is_writable('../../')) define('SYSLOG_FILE','../../dolibarr_install.log'); // For others
|
else if (@is_writable('../../')) define('SYSLOG_FILE','../../dolibarr_install.log'); // For others
|
||||||
//print 'SYSLOG_FILE='.SYSLOG_FILE;exit;
|
//print 'SYSLOG_FILE='.SYSLOG_FILE;exit;
|
||||||
if (defined('SYSLOG_FILE')) $conf->global->SYSLOG_FILE=constant('SYSLOG_FILE');
|
|
||||||
}
|
}
|
||||||
|
if (defined('SYSLOG_FILE')) $conf->global->SYSLOG_FILE=constant('SYSLOG_FILE');
|
||||||
if (! defined('SYSLOG_FILE_NO_ERROR')) define('SYSLOG_FILE_NO_ERROR',1);
|
if (! defined('SYSLOG_FILE_NO_ERROR')) define('SYSLOG_FILE_NO_ERROR',1);
|
||||||
// We init log handler for install
|
// We init log handler for install
|
||||||
$handlers = array('mod_syslog_file');
|
$handlers = array('mod_syslog_file');
|
||||||
|
|||||||
@ -663,7 +663,7 @@ if (! $error && $db->connected && $action == "set")
|
|||||||
|
|
||||||
$check1=$newdb->getDefaultCharacterSetDatabase();
|
$check1=$newdb->getDefaultCharacterSetDatabase();
|
||||||
$check2=$newdb->getDefaultCollationDatabase();
|
$check2=$newdb->getDefaultCollationDatabase();
|
||||||
dolibarr_install_syslog('step1: note that default server was charset=' . $check1 . ' collation=' . $check2);
|
dolibarr_install_syslog('step1: note that new database is using charset=' . $check1 . ' collation=' . $check2);
|
||||||
|
|
||||||
// If values differs, we save conf file again
|
// If values differs, we save conf file again
|
||||||
//if ($check1 != $dolibarr_main_db_character_set) dolibarr_install_syslog('step1: value for character_set is not the one asked for database creation', LOG_WARNING);
|
//if ($check1 != $dolibarr_main_db_character_set) dolibarr_install_syslog('step1: value for character_set is not the one asked for database creation', LOG_WARNING);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user