Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
davidliu
2024-07-08 21:56:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Committed by
GitHub
2024-07-08 21:56:20 +0900
Commit
ce0cb61619d8cc78376566d0bf8e10e493c45612
ce0cb616
1 parent
5d8c0c8d
Fix log level order (#452)
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
43 行增加
和
2 行删除
livekit-android-sdk/src/main/java/io/livekit/android/util/LoggingLevel.kt
livekit-android-test/src/test/java/io/livekit/android/util/LKLogTest.kt
livekit-android-sdk/src/main/java/io/livekit/android/util/LoggingLevel.kt
查看文件 @
ce0cb61
/*
* Copyright 2023 LiveKit, Inc.
* Copyright 2023
-2024
LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
...
...
@@ -20,8 +20,8 @@ import android.util.Log
enum class LoggingLevel {
VERBOSE,
INFO,
DEBUG,
INFO,
WARN,
ERROR,
WTF,
...
...
livekit-android-test/src/test/java/io/livekit/android/util/LKLogTest.kt
0 → 100644
查看文件 @
ce0cb61
/*
* Copyright 2024 LiveKit, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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 io.livekit.android.util
import io.livekit.android.LiveKit
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class LKLogTest {
@Test
fun log() {
var called = false
LiveKit.loggingLevel = LoggingLevel.INFO
LKLog.log(LoggingLevel.ERROR) { called = true }
assertTrue(called)
}
@Test
fun noLog() {
var called = false
LiveKit.loggingLevel = LoggingLevel.OFF
LKLog.log(LoggingLevel.VERBOSE) { called = true }
assertFalse(called)
}
}
...
...
请
注册
或
登录
后发表评论