Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
lemonldap-ng
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
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Xavier Bachelot
lemonldap-ng
Commits
9ed4303d
Commit
9ed4303d
authored
Sep 04, 2018
by
Xavier Guimard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't fail on init() if DBI connection fails (#1496)
parent
5d05292c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/DBI.pm
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/DBI.pm
+3
-1
No files found.
lemonldap-ng-portal/lib/Lemonldap/NG/Portal/Lib/DBI.pm
View file @
9ed4303d
...
@@ -43,7 +43,9 @@ sub dbh {
...
@@ -43,7 +43,9 @@ sub dbh {
# All DBI modules have just to verify that DBI connection is available
# All DBI modules have just to verify that DBI connection is available
sub
init
{
sub
init
{
my
(
$self
)
=
@_
;
my
(
$self
)
=
@_
;
return
$self
->
_dbh
;
$self
->
_dbh
or
$self
->
logger
->
error
("
DBI connection has failed, but let's continue
");
return
1
;
}
}
# RUNNING METHODS
# RUNNING METHODS
...
...
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