未验证 提交 c39bec7b 编写于 作者: Z zhenshan.cao 提交者: GitHub

[skip ci]Fix golint error in logutil (#9743)

Signed-off-by: Nzhenshan.cao <zhenshan.cao@zilliz.com>
上级 0acb9edf
......@@ -8,6 +8,7 @@
// Unless required by applicable law or agreed to in writing, software distributed under the License
// is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
// or implied. See the License for the specific language governing permissions and limitations under the License.
package logutil
import (
......@@ -110,6 +111,7 @@ func init() {
})
}
// SetupLogger is used to initialize the log with config.
func SetupLogger(cfg *log.Config) {
once.Do(func() {
// initialize logger
......@@ -135,6 +137,7 @@ func SetupLogger(cfg *log.Config) {
})
}
// GetZapWrapper returns the stored zapWrapper object.
func GetZapWrapper() *zapWrapper {
return _globalZapWrapper.Load().(*zapWrapper)
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册