mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-07 23:04:43 +08:00
[core] Add 'file://' to file paths in logs in LoginSolver
This commit is contained in:
parent
c29fe9d244
commit
8b84bd0aa3
@ -87,8 +87,8 @@ public class StandardCharImageLoginSolver @JvmOverloads constructor(
|
||||
}
|
||||
|
||||
tempFile.writeBytes(data)
|
||||
logger.info { "[QRCodeLogin] 将会显示二维码图片,若看不清图片,请查看文件 ${tempFile.absolutePath}" }
|
||||
logger.info { "[QRCodeLogin] Displaying qrcode image. If not clear, view file ${tempFile.absolutePath}." }
|
||||
logger.info { "[QRCodeLogin] 将会显示二维码图片,若看不清图片,请查看文件 file://${tempFile.absolutePath}" }
|
||||
logger.info { "[QRCodeLogin] Displaying qrcode image. If not clear, view file file://${tempFile.absolutePath}." }
|
||||
} catch (e: Exception) {
|
||||
logger.warning("[QRCodeLogin] 无法写出二维码图片. 请尽量关闭终端个性化样式后扫描二维码字符图片", e)
|
||||
logger.warning(
|
||||
@ -167,8 +167,8 @@ public class StandardCharImageLoginSolver @JvmOverloads constructor(
|
||||
logger.info { "[PicCaptcha] Picture captcha required. Captcha consists of 4 letters." }
|
||||
try {
|
||||
tempFile.writeBytes(data)
|
||||
logger.info { "[PicCaptcha] 将会显示字符图片. 若看不清字符图片, 请查看文件 ${tempFile.absolutePath}" }
|
||||
logger.info { "[PicCaptcha] Displaying char-image. If not clear, view file ${tempFile.absolutePath}." }
|
||||
logger.info { "[PicCaptcha] 将会显示字符图片. 若看不清字符图片, 请查看文件 file://${tempFile.absolutePath}" }
|
||||
logger.info { "[PicCaptcha] Displaying char-image. If not clear, view file file://${tempFile.absolutePath}." }
|
||||
} catch (e: Exception) {
|
||||
logger.warning("[PicCaptcha] 无法写出验证码文件, 请尝试查看以上字符图片", e)
|
||||
logger.warning("[PicCaptcha] Failed to export captcha image. Please see the char-image.", e)
|
||||
|
Loading…
Reference in New Issue
Block a user