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
smradius
smradius
Commits
4a68768a
Commit
4a68768a
authored
Nov 10, 2019
by
Nigel Kukard
Browse files
Fixed database error handling
parent
f9179295
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/smradius/daemon.pm
View file @
4a68768a
...
...
@@ -495,11 +495,11 @@ sub child_init_hook
# If we succeeded, record OK
$self
->
{'
client
'}
->
{'
dbh_status
'}
=
0
;
}
else
{
$self
->
log
(
LOG_WARN
,"
[SMRADIUS] Failed to connect to database:
"
.
$self
->
{'
client
'}
->
{'
dbh
'}
->
E
rror
()
.
$self
->
log
(
LOG_WARN
,"
[SMRADIUS] Failed to connect to database:
"
.
$self
->
{'
client
'}
->
{'
dbh
'}
->
e
rror
()
.
"
($$)
");
}
}
else
{
$self
->
log
(
LOG_WARN
,"
[SMRADIUS] Failed to Initialize:
"
.
awitpt::db::dbil
ayer::
internalError
()
.
"
($$)
");
$self
->
log
(
LOG_WARN
,"
[SMRADIUS] Failed to Initialize:
"
.
AWITPT::DB::DBIL
ayer::
internalError
()
.
"
($$)
");
}
}
...
...
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