mirror of
https://github.com/gofiber/fiber.git
synced 2025-04-27 13:14:31 +00:00
♻️ 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:
parent
19c95cdc17
commit
ecfcf1cc00
@ -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!
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
### Signatures
|
### Signatures
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user