Add warning if TdDb::check_encryption fails.
This commit is contained in:
parent
2d9b7a6e93
commit
5f19e0267f
@ -54,6 +54,7 @@ Result<TdDb::EncryptionInfo> check_encryption(string path) {
|
||||
Binlog binlog;
|
||||
auto status = binlog.init(path, Binlog::Callback());
|
||||
if (status.is_error() && status.code() != Binlog::Error::WrongPassword) {
|
||||
LOG(WARNING) << "Failed to check binlog: " << status;
|
||||
return Status::Error(400, status.message());
|
||||
}
|
||||
TdDb::EncryptionInfo info;
|
||||
|
Loading…
Reference in New Issue
Block a user