Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
93177377
Commit
93177377
authored
Aug 17, 2015
by
Florian Schaal
Browse files
add real sql-query to debug-log
parent
e559f3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/modules.inc.php
View file @
93177377
...
...
@@ -152,12 +152,14 @@ class modules {
$app
->
db
->
errorNumber
=
0
;
$app
->
db
->
errorMessage
=
''
;
$app
->
db
->
query
(
$sql
,
true
,
$params
);
unset
(
$params
);
if
(
$app
->
db
->
errorNumber
>
0
)
{
$replication_error
=
true
;
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
'dbtable'
]
.
") in MySQL server: ("
.
$app
->
db
->
dbHost
.
") "
.
$app
->
db
->
errorMessage
.
" # SQL: "
.
$sql
,
LOGLEVEL_ERROR
);
}
$app
->
log
(
'Replicated from master: '
.
$sql
,
LOGLEVEL_DEBUG
);
$log
=
$app
->
db
->
_build_query_string
(
$sql
,
true
,
$params
);
$app
->
log
(
'Replicated from master: '
.
$log
,
LOGLEVEL_DEBUG
);
unset
(
$params
);
unset
(
$log
);
}
if
(
$d
[
'action'
]
==
'd'
)
{
...
...
@@ -169,7 +171,9 @@ class modules {
$replication_error
=
true
;
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
.
" # SQL: "
.
$sql
,
LOGLEVEL_ERROR
);
}
$app
->
log
(
'Replicated from master: '
.
$sql
,
LOGLEVEL_DEBUG
);
$log
=
$app
->
db
->
_build_query_string
(
$sql
,
$d
[
'dbtable'
],
$idx
[
0
],
$idx
[
1
]);
$app
->
log
(
'Replicated from master: '
.
$log
,
LOGLEVEL_DEBUG
);
unset
(
$log
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment