File tree 6 files changed +7
-12
lines changed
6 files changed +7
-12
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ func TestIntegrationAtlanTagCache_RefreshCache(t *testing.T) {
10
10
if testing .Short () {
11
11
t .Skip ("skipping integration test" )
12
12
}
13
- LoggingEnabled = false
14
13
client := NewContext ()
15
14
cache := NewAtlanTagCache (client )
16
15
@@ -27,7 +26,6 @@ func TestIntegrationAtlanTagCache_GetIDForName(t *testing.T) {
27
26
if testing .Short () {
28
27
t .Skip ("skipping integration test" )
29
28
}
30
- LoggingEnabled = false
31
29
32
30
client := NewContext ()
33
31
cache := NewAtlanTagCache (client )
@@ -54,7 +52,6 @@ func TestIntegrationAtlanTagCache_GetNameForID(t *testing.T) {
54
52
if testing .Short () {
55
53
t .Skip ("skipping integration test" )
56
54
}
57
- LoggingEnabled = false
58
55
client := NewContext ()
59
56
cache := NewAtlanTagCache (client )
60
57
Original file line number Diff line number Diff line change @@ -303,7 +303,7 @@ func (ac *AtlanClient) logHTTPStatus(response *http.Response) {
303
303
}
304
304
305
305
func (ac * AtlanClient ) logResponse (responseJSON []byte ) {
306
- ac .logger .Infof ("<== __call_api" , string (responseJSON ))
306
+ ac .logger .Infof ("<== __call_api %s " , string (responseJSON ))
307
307
}
308
308
309
309
func deepCopy (original map [string ]interface {}) map [string ]interface {} {
Original file line number Diff line number Diff line change @@ -40,11 +40,10 @@ func TestCallAPI(t *testing.T) {
40
40
41
41
// Create a new AtlanClient instance
42
42
atlanClient := & AtlanClient {
43
- Session : http .DefaultClient ,
44
- host : mockServer .URL ,
45
- ApiKey : "mock_api_key" ,
46
- loggingEnabled : false ,
47
- // logger: logger,
43
+ Session : http .DefaultClient ,
44
+ host : mockServer .URL ,
45
+ ApiKey : "mock_api_key" ,
46
+ //logger: logger,
48
47
requestParams : make (map [string ]interface {}),
49
48
}
50
49
Original file line number Diff line number Diff line change @@ -12,7 +12,6 @@ func TestIntegrationFluentSearch(t *testing.T) {
12
12
if testing .Short () {
13
13
t .Skip ("skipping integration test" )
14
14
}
15
- LoggingEnabled = false
16
15
ctx := NewContext ()
17
16
18
17
// Create a glossary
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ func TestIntegrationGlossary(t *testing.T) {
14
14
t .Skip ("skipping integration test" )
15
15
}
16
16
17
- LoggingEnabled = false
18
17
NewContext ()
19
18
20
19
glossaryGUID := testCreateGlossary (t )
Original file line number Diff line number Diff line change @@ -8,9 +8,10 @@ import (
8
8
9
9
func main () {
10
10
11
- client .LoggingEnabled = true
12
11
ctx := client .NewContext ()
13
12
13
+ ctx .SetLogger (true , "info" )
14
+
14
15
qualifiedName := "default/snowflake/1714501359/RAW/WIDEWORLDIMPORTERS_SALESFORCE/WAITLIST_WORK_TYPE_HISTORY"
15
16
16
17
TableResponse , _ := client .NewFluentSearch ().
You can’t perform that action at this time.
0 commit comments