Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ISPConfig 3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Dirk Dankhoff
ISPConfig 3
Commits
93177377
Commit
93177377
authored
Aug 17, 2015
by
Florian Schaal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add real sql-query to debug-log
parent
e559f3b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
server/lib/classes/modules.inc.php
server/lib/classes/modules.inc.php
+7
-3
No files found.
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
Markdown
is supported
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