Wednesday, September 18, 2024
HomeGolangGolang gin api in pending - Getting Assist

Golang gin api in pending – Getting Assist


I’m utilizing golang gin my api is displaying in pending if I take advantage of third celebration sirupsen/logrus.

If I hit enter key on server software it begin working

Hey! We want extra context ir order to assist, maybe sharing some code if attainable;

Have you ever tried one other logging library? Additionally, please word that sirupsen/logrus is at present in upkeep mode and its final commit was greater than a yr in the past, I’d suggest utilizing one thing that’s being extra maintained like Zerolog or phuslu/log.

Okay thanks. I’ll replace as you instructed



1 Like

It feels like utilizing sirupsen/logrus along with your Gin API causes it to hold in pending, however hitting Enter on the server software makes it work. This may very well be associated to buffering or blocking points with the logger.

Why not use the in-built structured logger in go (slog)?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments