Skip to content

Commit

Permalink
Fix typo and remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rogierlommers committed Jun 21, 2018
1 parent 3511ddd commit 1b7c717
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 11 deletions.
10 changes: 0 additions & 10 deletions logrus_redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,6 @@ func NewHook(config HookConfig) (*RedisHook, error) {
return nil, fmt.Errorf("unable to connect to REDIS: %s", err)
}

// return &RedisHook{
// RedisHost: config.Host,
// RedisPool: pool,
// RedisKey: config.Key,
// LogstashFormat: config.Format,
// AppName: config.App,
// Hostname: config.Host,
// TTL: config.TTL,
// }, nil

return &RedisHook{
RedisHost: config.Host,
RedisPool: pool,
Expand Down
2 changes: 1 addition & 1 deletion logrus_redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ func TestNewHookFunc(t *testing.T) {

hook, err := NewHook(config)
if hook != nil {
t.Fatalf("TestNewHookFunc, expected no hook, got hook: %s", hook)
t.Fatalf("TestNewHookFunc, expected no hook, got hook: %v", hook)
}

if err == nil {
Expand Down

0 comments on commit 1b7c717

Please sign in to comment.