Commit ff4884c2 authored by Ajit Jagtap's avatar Ajit Jagtap
Browse files

Updated Logger to master

parent dde816c0
Branches
Tags
1 merge request!23Devbranch to Master
Showing with 26 additions and 7 deletions
......@@ -7,6 +7,12 @@
packages = ["."]
revision = "95ec53f28296f47af86a81eb73f0d7fe2b23a322"
[[projects]]
name = "github.com/antlr/antlr4"
packages = ["runtime/Go/antlr"]
revision = "bdc05c87be2ad981744223df0fd745e8345baba9"
version = "4.7.1"
[[projects]]
branch = "master"
name = "github.com/bluele/gcache"
......@@ -14,10 +20,14 @@
revision = "472614239ac7e5bc6461e237c798a6ebd5aff8c1"
[[projects]]
name = "github.com/bndr/gotabulate"
packages = ["."]
revision = "94ff52dbe671866d4f5cd3463ecdad8ec550e578"
version = "v1.1.2"
branch = "master"
name = "github.com/caibirdme/yql"
packages = [
".",
"internal/grammar",
"internal/stack"
]
revision = "315dfc5afc87108d37551bc86fb5ffa8fc5d4b51"
[[projects]]
name = "github.com/davecgh/go-spew"
......@@ -142,6 +152,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "a6a69847e64f89f67a4290038f3b59016baf50e2061b30cbc87e43af5096e115"
inputs-digest = "f827f9a5941a155c350f478743d55496318bffa114ba37c8501c894be1bce3dc"
solver-name = "gps-cdcl"
solver-version = 1
......@@ -105,6 +105,13 @@ func LogHREnd() {
fmt.Println("<<<<<<<<<<<<<<<<<<<<<<<")
}
// LogSpot will print block
func LogSpot(args ...interface{}) {
fmt.Println(">>>>>>>>>>STRT>>>>>>>>>>>>>")
log.Info("", args)
fmt.Println("<<<<<<<<<END<<<<<<<<<<<<<<")
}
// LogVars Prints variables with formatting
func LogVars(xvars ...interface{}) {
for _, i := range xvars {
......
......@@ -106,9 +106,9 @@ func ExampleLogHRStart() {
func ExampleGetCaller() {
errormdl.IsTestingNegetiveCaseOn = true
errormdl.IsTestingNegetiveCaseOnCheckBool = true
GetCallers(0)
errormdl.IsTestingNegetiveCaseOn = false
errormdl.IsTestingNegetiveCaseOnCheckBool = false
a := GetCallers(0)
fmt.Println(len(a))
//output:
......@@ -130,6 +130,8 @@ func ExampleInit() {
func TestLogPanic(t *testing.T) {
assert.Panics(t, func() { LogPanic("a") }, "The code did not panic")
assert.NotPanics(t, func() { LogSpot("A") }, "The code did not panic")
}
// func TestLogTable(t *testing.T) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment