Skip to content

Commit

Permalink
Added XMPP chat init logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Stormwind99 committed Jan 20, 2016
1 parent e7a5932 commit e9241d7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/XMPPChat/Private/Chat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,25 @@ void UChat::Login(const FString& UserId, const FString& Auth, const FXmppServer&
{
FXmppModule& Module = FModuleManager::GetModuleChecked<FXmppModule>("XMPP");

UE_LOG(LogChat, Log, TEXT("UChat::Login enables=%s UserId=%s"), Module.IsXmppEnabled() ? "true" : "false", *UserId );

XmppConnection = Module.CreateConnection(UserId);

if (XmppConnection.IsValid())
{
//UE_LOG(LogChat, Log, TEXT("UChat::Login XmppConnection is %s"), typeid(*XmppConnection).name() );
UE_LOG(LogChat, Log, TEXT("UChat::Login XmppConnection valid") );

Init();

XmppConnection->SetServer(XmppServer);

XmppConnection->Login(UserId, Auth);
}
else
{
UE_LOG(LogChat, Error, TEXT("UChat::Login XmppConnection not valid, failed. UserId=%s"), *UserId );
}
}


Expand Down

0 comments on commit e9241d7

Please sign in to comment.