@@ -23,6 +23,7 @@ import (
23
23
24
24
"github.com/vmware-labs/multi-tenant-persistence-for-saas/pkg/datastore"
25
25
"github.com/vmware-labs/multi-tenant-persistence-for-saas/pkg/dbrole"
26
+ "github.com/vmware-labs/multi-tenant-persistence-for-saas/pkg/logutils"
26
27
"github.com/vmware-labs/multi-tenant-persistence-for-saas/pkg/protostore"
27
28
)
28
29
@@ -32,11 +33,11 @@ func SetupDataStore(dbName string) (datastore.DataStore, protostore.ProtoStore)
32
33
if err != nil {
33
34
log .Fatalf ("Failed to create database from cfg %+v" , cfg )
34
35
}
35
- ds , err := datastore .FromConfig (datastore .GetCompLogger (), TestMetadataAuthorizer , TestInstancer , cfg )
36
+ ds , err := datastore .FromConfig (logutils .GetCompLogger (), TestMetadataAuthorizer , TestInstancer , cfg )
36
37
if err != nil {
37
38
log .Fatalf ("Failed to initialize datastore from cfg %+v" , cfg )
38
39
}
39
- ps := protostore .GetProtoStore (datastore .GetCompLogger (), ds )
40
+ ps := protostore .GetProtoStore (logutils .GetCompLogger (), ds )
40
41
return ds , ps
41
42
}
42
43
@@ -46,11 +47,11 @@ func SetupDataStoreNoInstancer(dbName string) (datastore.DataStore, protostore.P
46
47
if err != nil {
47
48
log .Fatalf ("Failed to create database from cfg %+v" , cfg )
48
49
}
49
- ds , err := datastore .FromConfig (datastore .GetCompLogger (), TestMetadataAuthorizer , nil /* instancer */ , cfg )
50
+ ds , err := datastore .FromConfig (logutils .GetCompLogger (), TestMetadataAuthorizer , nil /* instancer */ , cfg )
50
51
if err != nil {
51
52
log .Fatalf ("Failed to initialize datastore from cfg %+v" , cfg )
52
53
}
53
- ps := protostore .GetProtoStore (datastore .GetCompLogger (), ds )
54
+ ps := protostore .GetProtoStore (logutils .GetCompLogger (), ds )
54
55
return ds , ps
55
56
}
56
57
0 commit comments