Skip to content

Commit

Permalink
log: add additional log
Browse files Browse the repository at this point in the history
  • Loading branch information
labasubagia committed Sep 14, 2023
1 parent e95248d commit 6b9b3e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/adapter/handler/restful/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ func (server *Server) Start() error {
}

go func() {
server.logger.Info().Msg("listen to port", server.config.HTTPServerPort)
if err := srv.ListenAndServe(); err != nil && err != http.ErrServerClosed {
server.logger.Fatal().Err(err).Msg("failed listen")
}
Expand Down
1 change: 1 addition & 0 deletions internal/adapter/repository/sql/db/db.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ func New(config util.Config, logger port.Logger) (*DB, error) {
if err := database.migrate(); err != nil {
return nil, err
}
database.logger.Info().Msg("database migration ok")
return database, nil
}

Expand Down

0 comments on commit 6b9b3e0

Please sign in to comment.