mirror of https://github.com/gofiber/fiber.git
♻️ Removed Printed Warning (#1268)
* ♻️ Removed Printed Warning removed print statement for warning from monitor.go file * 📝 Added Warning Message in Readme added warning message in monitor middleware readmepull/1277/head
parent
19c95cdc17
commit
ecfcf1cc00
|
@ -1,6 +1,8 @@
|
|||
# Monitor
|
||||
Monitor middleware for [Fiber](https://github.com/gofiber/fiber) that reports server metrics, inspired by [express-status-monitor](https://github.com/RafalWilinski/express-status-monitor)
|
||||
|
||||
:warning: **Warning:** Monitor is still in beta, API might change in the future!
|
||||
|
||||

|
||||
|
||||
### Signatures
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
package monitor
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sync"
|
||||
"sync/atomic"
|
||||
|
@ -52,8 +51,6 @@ var (
|
|||
func New() fiber.Handler {
|
||||
// Start routine to update statistics
|
||||
once.Do(func() {
|
||||
fmt.Println("[Warning] monitor is still in beta, API might change in the future!")
|
||||
|
||||
p, _ := process.NewProcess(int32(os.Getpid()))
|
||||
|
||||
updateStatistics(p)
|
||||
|
|
Loading…
Reference in New Issue