♻️ 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 readme
This commit is contained in:
Sagar Sonwane 2021-04-06 18:51:53 +05:30 committed by GitHub
parent 19c95cdc17
commit ecfcf1cc00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,6 +1,8 @@
# Monitor # 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) 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!
![](https://i.imgur.com/4NfRCDm.gif) ![](https://i.imgur.com/4NfRCDm.gif)
### Signatures ### Signatures

View File

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