mirror of
https://gitlab.com/famedly/conduit.git
synced 2025-03-25 20:45:52 +03:00
Add some debug/info if user was found
This commit is contained in:
parent
3e79d15495
commit
52284ef9e2
1 changed files with 5 additions and 1 deletions
|
@ -10,6 +10,7 @@ use ruma::{
|
||||||
};
|
};
|
||||||
use std::{collections::BTreeMap, convert::TryInto, mem, sync::Arc};
|
use std::{collections::BTreeMap, convert::TryInto, mem, sync::Arc};
|
||||||
use tracing::warn;
|
use tracing::warn;
|
||||||
|
use tracing::info;
|
||||||
|
|
||||||
use super::abstraction::Tree;
|
use super::abstraction::Tree;
|
||||||
|
|
||||||
|
@ -144,7 +145,10 @@ impl Users {
|
||||||
// A valid password is not empty
|
// A valid password is not empty
|
||||||
if password.len() > 0 {
|
if password.len() > 0 {
|
||||||
match utils::string_from_bytes(username) {
|
match utils::string_from_bytes(username) {
|
||||||
Ok(u) => Some(u),
|
Ok(u) => {
|
||||||
|
info!("list_local_users_test: found user {}", u);
|
||||||
|
Some(u)
|
||||||
|
},
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
// let msg: String = format!(
|
// let msg: String = format!(
|
||||||
// "Failed to parse username while calling get_local_users(): {}",
|
// "Failed to parse username while calling get_local_users(): {}",
|
||||||
|
|
Loading…
Reference in a new issue