Commit 80e7f9ac authored by Carsten  Rose's avatar Carsten Rose
Browse files

Path of 'sql.log' / 'mail.log' are now relative to <site path> (not <ext path> as before).

parent 11bc2c26
......@@ -301,9 +301,9 @@ config.qfq.ini
| | | *modify*: log only statements who change data. *error*: log only DB errors.|
| | | *none*: no SQL log at all. |
+-----------------------------+-------------------------------------------------------+----------------------------------------------------------------------------+
| SQL_LOG | SQL_LOG=../../sql.log | Filename to log SQL commands: relative to <ext_dir> or absolute. |
| SQL_LOG | SQL_LOG=typo3conf/sql.log | Filename to log SQL commands: relative to <site path> or absolute. |
+-----------------------------+-------------------------------------------------------+----------------------------------------------------------------------------+
| MAIL_LOG | SQL_LOG=../../mail.log | Filename to log `sendEmail` commands: relative to <ext_dir> or absolute. |
| MAIL_LOG | SQL_LOG=typo3conf/mail.log | Filename to log `sendEmail` commands: relative to <site path> or absolute. |
+-----------------------------+-------------------------------------------------------+----------------------------------------------------------------------------+
| SEND_E_MAIL_OPTIONS | SEND_E_MAIL_OPTIONS="-o tls=yes" | General options. Check: http://caspian.dotconf.net/menu/Software/SendEmail |
+-----------------------------+-------------------------------------------------------+----------------------------------------------------------------------------+
......@@ -438,13 +438,13 @@ Example: *typo3conf/config.qfq.ini*
; DB_2_PASSWORD = <DBPW>
; DB_2_NAME = <DB>
; '../../sql.log' = <T3 Install directory>/typo3conf/sql.log
; SQL_LOG = ../../sql.log
; <site path>/typo3conf/sql.log
; SQL_LOG = typo3conf/sql.log
; all|modify|error|none
; SQL_LOG_MODE = modify
; MAIL_LOG = ../../mail.log
; MAIL_LOG = typo3conf/mail.log
; SEND_E_MAIL_OPTIONS = "-o ... " - check http://caspian.dotconf.net/menu/Software/SendEmail
; [auto|yes|no][,download]. 'auto': if BE User is logged in the value will be replaced by 'yes', else 'no'. Additional choose 'download'.
......
......@@ -51,11 +51,11 @@ fillStoreSystemBySqlErrorMsg3 =
# cat=debug/sql; type=string; label=SQL log mode:Default is 'modify'. A logfile of QFQ fired SQL statements will be written. Possible modes are 'all' - every statement will be logged (this might a lot). 'modify' - log only statements who change data. 'error' - log only DB errors. 'none' - log never.
sqlLogMode = modify
# cat=debug/sql; type=string; label=SQL log file:Default is '../../sql.log'. A logfile of fired SQL statements. Possible modes are 'all' - every statement will be logged (this might a lot) or 'modify' - log only statements who change data.
sqlLog = ../../sql.log
# cat=debug/sql; type=string; label=SQL log file:Default is 'typo3conf/sql.log'. A logfile of fired SQL statements. PathFile is absolute or relative to '<site path>'.
sqlLog = typo3conf/sql.log
# cat=debug/mail; type=string; label=Mail log file:Default is '../../mail.log'. A logfile of sent mail. Possible modes are 'all' - every statement will be logged (this might a lot) or 'modify' - log only statements who change data.
mailLog = ../../mail.log
# cat=debug/mail; type=string; label=Mail log file:Default is 'typo3conf/mail.log'. A logfile of sent mail. PathFile is absolute or relative to '<site path>'.
mailLog = typo3conf/mail.log
# cat=debug/info; type=string; label=Show debug info:Default is 'auto'. Possible values: [yes|no|auto][,download]. For 'auto': If a BE User is logged in, a debug information will be shown on the FE.
showDebugInfo = auto
......
......@@ -21,8 +21,6 @@ class Config {
* @param string $configIni
* @return array
* @throws UserFormException
* @internal param string $pathTypo3Conf
*
*/
public function readConfig($configIni = '') {
$configT3qfq = array();
......
......@@ -243,12 +243,12 @@ class Store {
// make SQL PATH absolute. This is necessary to work in different directories correctly.
if (!empty($config[SYSTEM_SQL_LOG]) && $config[SYSTEM_SQL_LOG][0] !== '/') {
$config[SYSTEM_SQL_LOG] = $config[SYSTEM_PATH_EXT] . '/' . $config[SYSTEM_SQL_LOG];
$config[SYSTEM_SQL_LOG] = $config[SYSTEM_SITE_PATH] . '/' . $config[SYSTEM_SQL_LOG];
}
// make SQL PATH absolute. This is necessary to work in different directories correctly.
if (!empty($config[SYSTEM_MAIL_LOG]) && $config[SYSTEM_MAIL_LOG][0] !== '/') {
$config[SYSTEM_MAIL_LOG] = $config[SYSTEM_PATH_EXT] . '/' . $config[SYSTEM_MAIL_LOG];
$config[SYSTEM_MAIL_LOG] = $config[SYSTEM_SITE_PATH] . '/' . $config[SYSTEM_MAIL_LOG];
}
$config[SYSTEM_SEND_E_MAIL] = $config[SYSTEM_PATH_EXT] . '/qfq/external/sendEmail';
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment