Skip to content

Commit

Permalink
try fix CI #21. Add debug message in application
Browse files Browse the repository at this point in the history
  • Loading branch information
Anvill1 committed Jan 9, 2025
1 parent a37db38 commit ab271ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions internals/app/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func NewServer(config cfg.Cfg, ctx context.Context) *Server {

func (server *Server) Serve() {
log.Println("Starting server...")
log.Println(os.Environ()) //! Debug сообщение
var err error

server.db, err = pgx.Connect(server.ctx, server.config.GetDBString())
Expand Down Expand Up @@ -71,8 +72,6 @@ func (server *Server) Serve() {

log.Println("Server started")

log.Println(os.Environ()) //! Debug сообщение

err = server.srv.ListenAndServe()

if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion tests/config.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
PORT: 8080
Database:
Host: "db"
Host: "HAHAHA"
Name: "soloanvill"
User: "soloanvill"
Password: "password"
Expand Down

0 comments on commit ab271ee

Please sign in to comment.