Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dex
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
dex
Commits
d1c8f8d0
Unverified
Commit
d1c8f8d0
authored
Feb 22, 2019
by
Mark Sagi-Kazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove structured logging from the logger interface
parent
be581fa7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
8 deletions
+1
-8
logger.go
pkg/log/logger.go
+0
-2
logrus.go
pkg/log/logrus.go
+0
-5
server.go
server/server.go
+1
-1
No files found.
pkg/log/logger.go
View file @
d1c8f8d0
...
...
@@ -6,8 +6,6 @@ package log
// Logger serves as an adapter interface for logger libraries
// so that dex does not depend on any of them directly.
type
Logger
interface
{
WithField
(
key
string
,
value
interface
{})
Logger
Info
(
msg
string
)
Warn
(
msg
string
)
...
...
pkg/log/logrus.go
View file @
d1c8f8d0
...
...
@@ -14,11 +14,6 @@ func NewLogrusLogger(logger logrus.FieldLogger) *LogrusLogger {
}
}
// WithField adds a field to the log entry.
func
(
l
*
LogrusLogger
)
WithField
(
key
string
,
value
interface
{})
Logger
{
return
NewLogrusLogger
(
l
.
logger
.
WithField
(
key
,
value
))
}
// Info logs an Info level event.
func
(
l
*
LogrusLogger
)
Info
(
msg
string
)
{
l
.
logger
.
Info
(
msg
)
...
...
server/server.go
View file @
d1c8f8d0
...
...
@@ -485,7 +485,7 @@ func (s *Server) OpenConnector(conn storage.Connector) (Connector, error) {
c
=
newPasswordDB
(
s
.
storage
)
}
else
{
var
err
error
c
,
err
=
openConnector
(
s
.
logger
.
WithField
(
"connector"
,
conn
.
Name
)
,
conn
)
c
,
err
=
openConnector
(
s
.
logger
,
conn
)
if
err
!=
nil
{
return
Connector
{},
fmt
.
Errorf
(
"failed to open connector: %v"
,
err
)
}
...
...
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