diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-14 00:53:22 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2005-02-14 00:53:22 +0000 |
commit | 812103cea68f1da2004dd518c5ad3b448a0e1729 (patch) | |
tree | b4bc86a077385a219474bcb5bca727e0703ed52b /src/gui/login.cpp | |
parent | 3628aae5ef1be719603d4aa8e1b209cf5e04520c (diff) | |
download | mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.gz mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.bz2 mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.tar.xz mana-client-812103cea68f1da2004dd518c5ad3b448a0e1729.zip |
Simplified logging for the sake of simplicity.
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 5496c01b..3c58cde9 100644 --- a/src/gui/login.cpp +++ b/src/gui/login.cpp @@ -105,7 +105,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()); + log("Network: Username is %s", user.c_str()); // Store config settings config.setValue("remember", keepCheck->isMarked()); @@ -191,8 +191,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))); + log("Network: Packet ID: %x", RFIFOW(0)); + log("Network: Packet length: %d", get_packet_length(RFIFOW(0))); if (RFIFOW(0) == 0x0069) { while (in_size < RFIFOW(2)) { @@ -211,10 +211,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, + 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); + log("Network: Users: %d", server_info[0].online_users); RFIFOSKIP(RFIFOW(2)); } else if (RFIFOW(0) == 0x006a) { |