Skip to content

Commit

Permalink
Merge pull request #127 from oinume/feature/fetcher-log
Browse files Browse the repository at this point in the history
Remove teacherName from log
  • Loading branch information
oinume committed Feb 3, 2017
2 parents 0b2faf2 + d068f72 commit 65eca36
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions server/notifier/notifier.go
Expand Up @@ -103,16 +103,15 @@ func (n *Notifier) fetchAndExtractNewAvailableLessons(teacherID uint32) (
teacher, fetchedLessons, err := n.fetcher.Fetch(teacherID)
if err != nil {
logger.App.Error(
"TeacherLessonFetcher.Fetch",
"fetcher.Fetch",
zap.Uint("teacherID", uint(teacherID)), zap.Error(err),
)
return nil, nil, nil, err
}
logger.App.Info(
"TeacherLessonFetcher.Fetch",
"fetcher.Fetch",
zap.Uint("teacherID", uint(teacher.ID)),
zap.String("teacherName", teacher.Name),
zap.Int("fetchedLessons", len(fetchedLessons)),
zap.Int("lessons", len(fetchedLessons)),
)

//fmt.Printf("fetchedLessons ---\n")
Expand Down

0 comments on commit 65eca36

Please sign in to comment.