Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Guilherme Filippo
ISPConfig 3
Commits
a04614c8
Commit
a04614c8
authored
Dec 17, 2008
by
tbrehm
Browse files
Made Logging for replication errors more verbose.
parent
f3a56aaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/lib/classes/modules.inc.php
View file @
a04614c8
...
...
@@ -109,7 +109,7 @@ class modules {
$app
->
db
->
query
(
$sql
);
if
(
$app
->
db
->
errorNumber
>
0
)
{
$replication_error
=
true
;
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
,
LOGLEVEL_ERROR
);
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
.
" # SQL: "
.
$sql
,
LOGLEVEL_ERROR
);
}
$app
->
log
(
"Replicated from master: "
.
$sql
,
LOGLEVEL_DEBUG
);
}
...
...
@@ -125,7 +125,7 @@ class modules {
$app
->
db
->
query
(
$sql
);
if
(
$app
->
db
->
errorNumber
>
0
)
{
$replication_error
=
true
;
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
,
LOGLEVEL_ERROR
);
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
.
" # SQL: "
.
$sql
,
LOGLEVEL_ERROR
);
}
$app
->
log
(
"Replicated from master: "
.
$sql
,
LOGLEVEL_DEBUG
);
}
...
...
@@ -137,7 +137,7 @@ class modules {
$app
->
db
->
query
(
$sql
);
if
(
$app
->
db
->
errorNumber
>
0
)
{
$replication_error
=
true
;
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
,
LOGLEVEL_ERROR
);
$app
->
log
(
"Replication failed. Error: ("
.
$d
[
dbtable
]
.
") "
.
$app
->
db
->
errorMessage
.
" # SQL: "
.
$sql
,
LOGLEVEL_ERROR
);
}
$app
->
log
(
"Replicated from master: "
.
$sql
,
LOGLEVEL_DEBUG
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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