Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
MKCLOS
Core Development Platform
corepkgv2
Commits
c8b007e2
Commit
c8b007e2
authored
11 months ago
by
Akshay Mahendrakar
Browse files
Options
Downloads
Patches
Plain Diff
coreimmudb - Connection failure logger message added.
parent
5c31ae9e
Branches
coreimmudb-connection-failure-logger
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dalmdl/coreimmudb/coreimmudb.go
+2
-0
dalmdl/coreimmudb/coreimmudb.go
with
2 additions
and
0 deletions
dalmdl/coreimmudb/coreimmudb.go
+
2
−
0
View file @
c8b007e2
...
...
@@ -10,6 +10,7 @@ import (
"time"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/corepkgv2/errormdl"
"corelab.mkcl.org/MKCLOS/coredevelopmentplatform/corepkgv2/loggermdl"
"github.com/codenotary/immudb/pkg/api/schema"
"github.com/codenotary/immudb/pkg/auth"
immudb
"github.com/codenotary/immudb/pkg/client"
...
...
@@ -152,6 +153,7 @@ func AddDBConnection(host ImmuHost) error {
client
=
immudb
.
NewClient
()
.
WithOptions
(
opts
)
err
:=
client
.
OpenSession
(
context
.
TODO
(),
[]
byte
(
host
.
Username
),
[]
byte
(
host
.
Password
),
host
.
Database
)
if
err
!=
nil
{
loggermdl
.
LogError
(
"FAILED TO CONNECT TO IMMUDB HOST '"
+
host
.
HostName
+
"' - "
+
err
.
Error
())
return
err
}
instances
[
host
.
HostName
]
=
client
...
...
This diff is collapsed.
Click to expand it.
Preview
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!
Save comment
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Topics
Snippets