Index: server/server.cpp
===================================================================
--- server/server.cpp	(revision 7f884ea475eb4414240346df9f75469295509393)
+++ server/server.cpp	(revision 1e250bf9d48a19170bc81f9609b3fe97fd107f22)
@@ -44,5 +44,5 @@
 // from used to be const. Removed that so I could take a reference
 // and use it to send messages
-void processMessage(const NETWORK_MSG& clientMsg, struct sockaddr_in& from, MessageProcessor& msgProcessor, map<unsigned int, Player*>& mapPlayers, map<string, Game*>& mapGames, unsigned int& unusedPlayerId);
+void processMessage(const NETWORK_MSG& clientMsg, struct sockaddr_in& from, MessageProcessor& msgProcessor, map<unsigned int, Player*>& mapPlayers, map<string, Game*>& mapGames, unsigned int& unusedPlayerId, ofstream& outputLog);
 
 void updateUnusedPlayerId(unsigned int& id, map<unsigned int, Player*>& mapPlayers);
@@ -231,5 +231,5 @@
       if (msgProcessor.receiveMessage(&clientMsg, &from) >= 0)
       {
-         processMessage(clientMsg, from, msgProcessor, mapPlayers, mapGames, unusedPlayerId);
+         processMessage(clientMsg, from, msgProcessor, mapPlayers, mapGames, unusedPlayerId, outputLog);
 
          cout << "Finished processing the message" << endl;
@@ -256,5 +256,5 @@
 }
 
-void processMessage(const NETWORK_MSG &clientMsg, struct sockaddr_in &from, MessageProcessor &msgProcessor, map<unsigned int, Player*>& mapPlayers, map<string, Game*>& mapGames, unsigned int& unusedPlayerId)
+void processMessage(const NETWORK_MSG &clientMsg, struct sockaddr_in &from, MessageProcessor &msgProcessor, map<unsigned int, Player*>& mapPlayers, map<string, Game*>& mapGames, unsigned int& unusedPlayerId, ofstream& outputLog)
 {
    NETWORK_MSG serverMsg;
@@ -759,9 +759,5 @@
       default:
       {
-         // probably want to log the error rather than sending a chat message,
-         // especially since chat isn't currently visible on all screens
-
-         serverMsg.type = MSG_TYPE_CHAT;
-         strcpy(serverMsg.buffer, "Server error occured. Report this please.");
+         outputLog << "Received unknown message of type " << clientMsg.type << endl;
 
          break;
