Commit ffb25af 1 parent 3cce430 commit ffb25af Copy full SHA for ffb25af
File tree 3 files changed +0
-34
lines changed
3 files changed +0
-34
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"github.com/Azure/azure-container-networking/cni"
11
11
"github.com/Azure/azure-container-networking/cni/ipam"
12
12
"github.com/Azure/azure-container-networking/common"
13
- "github.com/Azure/azure-container-networking/log"
14
13
)
15
14
16
15
const name = "azure-vnet-ipam"
@@ -23,17 +22,6 @@ func main() {
23
22
var config common.PluginConfig
24
23
config .Version = version
25
24
26
- logDirectory := "" // Sets the current location as log directory
27
-
28
- log .SetName (name )
29
- log .SetLevel (log .LevelInfo )
30
- if err := log .SetTargetLogDirectory (log .TargetLogfile , logDirectory ); err != nil {
31
- fmt .Printf ("Failed to setup cni logging: %v\n " , err )
32
- return
33
- }
34
-
35
- defer log .Close ()
36
-
37
25
ipamPlugin , err := ipam .NewPlugin (name , & config )
38
26
if err != nil {
39
27
fmt .Printf ("Failed to create IPAM plugin, err:%v.\n " , err )
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import (
10
10
"github.com/Azure/azure-container-networking/cni"
11
11
"github.com/Azure/azure-container-networking/cni/ipam"
12
12
"github.com/Azure/azure-container-networking/common"
13
- "github.com/Azure/azure-container-networking/log"
14
13
)
15
14
16
15
const name = "azure-vnet-ipamv6"
@@ -23,17 +22,6 @@ func main() {
23
22
var config common.PluginConfig
24
23
config .Version = version
25
24
26
- logDirectory := "" // Sets the current location as log directory
27
-
28
- log .SetName (name )
29
- log .SetLevel (log .LevelInfo )
30
- if err := log .SetTargetLogDirectory (log .TargetLogfile , logDirectory ); err != nil {
31
- fmt .Printf ("Failed to setup cni logging: %v\n " , err )
32
- return
33
- }
34
-
35
- defer log .Close ()
36
-
37
25
ipamPlugin , err := ipam .NewPlugin (name , & config )
38
26
if err != nil {
39
27
fmt .Printf ("Failed to create IPAM plugin, err:%v.\n " , err )
Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ import (
17
17
zaplog "github.com/Azure/azure-container-networking/cni/log"
18
18
"github.com/Azure/azure-container-networking/cni/network"
19
19
"github.com/Azure/azure-container-networking/common"
20
- "github.com/Azure/azure-container-networking/log"
21
20
"github.com/Azure/azure-container-networking/nns"
22
21
"github.com/Azure/azure-container-networking/platform"
23
22
"github.com/Azure/azure-container-networking/store"
@@ -295,15 +294,6 @@ func main() {
295
294
os .Exit (0 )
296
295
}
297
296
298
- log .SetName (name )
299
- log .SetLevel (log .LevelInfo )
300
- if err := log .SetTargetLogDirectory (log .TargetLogfile , "" ); err != nil {
301
- fmt .Printf ("Failed to setup cni logging: %v\n " , err )
302
- return
303
- }
304
-
305
- defer log .Close ()
306
-
307
297
if rootExecute () != nil {
308
298
os .Exit (1 )
309
299
}
You can’t perform that action at this time.
0 commit comments