diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 21:24:31 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-03-24 21:24:31 +0000 |
commit | b5a9e699b9685e2a7d448171e282fd284754caf1 (patch) | |
tree | 4c8787fb30d28ec685bbcbb2ddca962b838a256d /src/gui/login.cpp | |
parent | adf5fb5d45c11a0506d199d2cc672535c8418ce1 (diff) | |
download | mana-client-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.gz mana-client-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.bz2 mana-client-b5a9e699b9685e2a7d448171e282fd284754caf1.tar.xz mana-client-b5a9e699b9685e2a7d448171e282fd284754caf1.zip |
Logger Implemented. (3/3)
Diffstat (limited to 'src/gui/login.cpp')
-rw-r--r-- | src/gui/login.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gui/login.cpp b/src/gui/login.cpp index f5e51d8d..ab06be75 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -106,7 +106,7 @@ void LoginDialog::action(const std::string& eventId) { if (eventId == "ok") { const std::string user = userField->getText(); - log("Network: Username is %s", user.c_str()); + logger.log("Network: Username is %s", user.c_str()); // Store config settings config.setValue("remember", keepCheck->isMarked()); @@ -193,8 +193,8 @@ void server_login(const std::string& user, const std::string& pass) { while ((in_size < 23) || (out_size > 0)) { flush(); } - log("Network: Packet ID: %x", RFIFOW(0)); - log("Network: Packet length: %d", get_packet_length(RFIFOW(0))); + logger.log("Network: Packet ID: %x", RFIFOW(0)); + logger.log("Network: Packet length: %d", get_packet_length(RFIFOW(0))); if (RFIFOW(0) == 0x0069) { while (in_size < RFIFOW(2)) { @@ -213,10 +213,10 @@ void server_login(const std::string& user, const std::string& pass) { server_info[i].port = RFIFOW(47 + 32 * i + 4); state = CHAR_SERVER; } - log("Network: Server: %s (%s:%d)", server_info[0].name, + logger.log("Network: Server: %s (%s:%d)", server_info[0].name, iptostring(server_info[0].address), server_info[0].port); - log("Network: Users: %d", server_info[0].online_users); + logger.log("Network: Users: %d", server_info[0].online_users); RFIFOSKIP(RFIFOW(2)); } else if (RFIFOW(0) == 0x006a) { |