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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Massimiliano
ISPConfig 3
Commits
a1918e5a
Commit
a1918e5a
authored
Feb 24, 2014
by
Marius Cramer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added db query to error log
parent
030bb96e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
interface/lib/classes/db_mysql.inc.php
interface/lib/classes/db_mysql.inc.php
+1
-1
server/lib/classes/db_mysql.inc.php
server/lib/classes/db_mysql.inc.php
+1
-1
No files found.
interface/lib/classes/db_mysql.inc.php
View file @
a1918e5a
...
...
@@ -419,7 +419,7 @@ class db extends mysqli
if
(
$this
->
show_error_messages
&&
$conf
[
'demo_mode'
]
===
false
)
{
echo
$sErrormsg
.
$sAddMsg
;
}
else
if
(
is_object
(
$app
)
&&
method_exists
(
$app
,
'log'
))
{
$app
->
log
(
$sErrormsg
.
$sAddMsg
,
LOGLEVEL_WARN
);
$app
->
log
(
$sErrormsg
.
$sAddMsg
.
' -> '
.
$mysql_errno
.
' ('
.
$mysql_error
.
')'
,
LOGLEVEL_WARN
);
}
}
...
...
server/lib/classes/db_mysql.inc.php
View file @
a1918e5a
...
...
@@ -424,7 +424,7 @@ class db extends mysqli
if
(
$this
->
show_error_messages
&&
$conf
[
'demo_mode'
]
===
false
)
{
echo
$sErrormsg
.
$sAddMsg
;
}
else
if
(
is_object
(
$app
)
&&
method_exists
(
$app
,
'log'
))
{
$app
->
log
(
$sErrormsg
.
$sAddMsg
,
LOGLEVEL_WARN
);
$app
->
log
(
$sErrormsg
.
$sAddMsg
.
' -> '
.
$mysql_errno
.
' ('
.
$mysql_error
.
')'
,
LOGLEVEL_WARN
);
}
}
...
...
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