summaryrefslogtreecommitdiff
path: root/utilities/utilities.go
diff options
context:
space:
mode:
authorWill Hawkins <[email protected]>2022-05-04 17:51:50 -0400
committerWill Hawkins <[email protected]>2022-05-04 17:51:50 -0400
commit10ddc4e9c56beeb5718cd878313ddf88695a1948 (patch)
tree284c151bae39d24b5fb613dddd858340d8f82bcf /utilities/utilities.go
parentfa647c6645f74e3c0e6fded658f5f8b5882b0e01 (diff)
Make Traceable Interface and Refactor Debugging
1. Make a traceable interface for all things that can be wrapped in an httptrace.ClientTrace. 2. Refactor debugging system into debug package.
Diffstat (limited to 'utilities/utilities.go')
-rw-r--r--utilities/utilities.go23
1 files changed, 0 insertions, 23 deletions
diff --git a/utilities/utilities.go b/utilities/utilities.go
index b8e416c..46d5766 100644
--- a/utilities/utilities.go
+++ b/utilities/utilities.go
@@ -22,8 +22,6 @@ import (
"os"
"reflect"
"time"
-
- "github.com/network-quality/goresponsiveness/constants"
)
func IsInterfaceNil(ifc interface{}) bool {
@@ -123,24 +121,3 @@ func SeekForAppend(file *os.File) (err error) {
_, err = file.Seek(0, 2)
return
}
-
-func IsDebug(level constants.DebugLevel) bool {
- if level <= constants.Debug {
- return true
- }
- return false
-}
-
-func IsWarn(level constants.DebugLevel) bool {
- if level <= constants.Warn {
- return true
- }
- return false
-}
-
-func IsError(level constants.DebugLevel) bool {
- if level <= constants.Error {
- return true
- }
- return false
-}