Skip to content

Commit b3250aa

Browse files
committed
initialize ziti-sdk-c logger early to prevent init from overwriting previously set tlsuv log level
1 parent d9f4c35 commit b3250aa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/Ziti.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ import CZitiPrivate
139139
loop = UnsafeMutablePointer<uv_loop_t>.allocate(capacity: 1)
140140
loop.initialize(to: uv_loop_t())
141141
uv_loop_init(loop)
142+
ziti_log_init_wrapper(loop)
142143
super.init()
143144
initOpsHandle()
144145
}
@@ -158,6 +159,7 @@ import CZitiPrivate
158159
loop = UnsafeMutablePointer<uv_loop_t>.allocate(capacity: 1)
159160
loop.initialize(to: uv_loop_t())
160161
uv_loop_init(loop)
162+
ziti_log_init_wrapper(loop)
161163
super.init()
162164
initOpsHandle()
163165
}
@@ -172,6 +174,7 @@ import CZitiPrivate
172174
loop = UnsafeMutablePointer<uv_loop_t>.allocate(capacity: 1)
173175
loop.initialize(to: uv_loop_t())
174176
uv_loop_init(loop)
177+
ziti_log_init_wrapper(loop)
175178
super.init()
176179
initOpsHandle()
177180
}

0 commit comments

Comments
 (0)