mirror of
https://github.com/mamoe/mirai.git
synced 2024-12-29 10:00:13 +08:00
[mock] Remove MockConsoleImplementation.createLogger
because it had been removed in its super class
This commit fixes 7908edb57b
This commit is contained in:
parent
479fa773f5
commit
38737a473a
@ -76,15 +76,6 @@ open class MockConsoleImplementation : MiraiConsoleImplementation {
|
||||
override fun createLoginSolver(requesterBot: Long, configuration: BotConfiguration): LoginSolver =
|
||||
LoginSolver.Default!!
|
||||
|
||||
@Suppress("DeprecatedCallableAddReplaceWith")
|
||||
@Deprecated(
|
||||
"Deprecated for removal. Implement the other overload, or use MiraiConsole.createLogger instead.",
|
||||
level = DeprecationLevel.HIDDEN
|
||||
)
|
||||
override fun createLogger(identity: String?): MiraiLogger {
|
||||
return PlatformLogger(identity)
|
||||
}
|
||||
|
||||
override fun createLoggerFactory(context: MiraiConsoleImplementation.FrontendLoggingInitContext): MiraiLogger.Factory {
|
||||
return object : MiraiLogger.Factory {
|
||||
override fun create(requester: Class<*>, identity: String?): MiraiLogger {
|
||||
|
Loading…
Reference in New Issue
Block a user