mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-19 17:39:17 +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 =
|
override fun createLoginSolver(requesterBot: Long, configuration: BotConfiguration): LoginSolver =
|
||||||
LoginSolver.Default!!
|
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 {
|
override fun createLoggerFactory(context: MiraiConsoleImplementation.FrontendLoggingInitContext): MiraiLogger.Factory {
|
||||||
return object : MiraiLogger.Factory {
|
return object : MiraiLogger.Factory {
|
||||||
override fun create(requester: Class<*>, identity: String?): MiraiLogger {
|
override fun create(requester: Class<*>, identity: String?): MiraiLogger {
|
||||||
|
Loading…
Reference in New Issue
Block a user