Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
cjcchen committed May 11, 2017
1 parent 92200ed commit 382ff8b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phxbinlogsvr/core/storage/master_storage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ int MasterStorage::SetMySqlAdminInfo(const MasterInfo &master_info, const std::s
master_info.version());
return MASTER_VERSION_CONFLICT;
}
ColorLogInfo("%s set new username %s", __func__, username.c_str());
ColorLogInfo("%s set new username %s, pwd size %zu", __func__, username.c_str(),pwd.size());
admin_username_ = username;
admin_pwd_ = pwd;
return OK;
Expand All @@ -100,7 +100,7 @@ int MasterStorage::SetMySqlReplicaInfo(const MasterInfo &master_info, const std:
master_info.version());
return MASTER_VERSION_CONFLICT;
}
ColorLogInfo("%s set new username %s", __func__, username.c_str());
ColorLogInfo("%s set new username %s, pwd size %zu", __func__, username.c_str(),pwd.size());
replica_username_ = username;
replica_pwd_ = pwd;
return OK;
Expand Down

0 comments on commit 382ff8b

Please sign in to comment.