This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Changeset 21844 for ps


Ignore:
Timestamp:
06/07/18 00:37:20 (7 years ago)
Author:
elexis
Message:

Don't print lobby buddies to mainlog.html, refs D209 / rP19433.

Differential Revision: https://code.wildfiregames.com/D1563
Comments By: Vladislav

Location:
ps/trunk/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ps/trunk/source/network/NetMessages.h

    r21520 r21844  
    1 /* Copyright (C) 2017 Wildfire Games.
     1/* Copyright (C) 2018 Wildfire Games.
    22 * This file is part of 0 A.D.
    33 *
     
    122122START_NMT_CLASS_(Authenticate, NMT_AUTHENTICATE)
    123123    NMT_FIELD(CStrW, m_Name)
     124    // TODO: The password should not be printed to logfiles
    124125    NMT_FIELD(CStrW, m_Password)
    125126    NMT_FIELD_INT(m_IsLocalClient, u8, 1)
  • ps/trunk/source/ps/ConfigDB.cpp

    r21840 r21844  
    3333
    3434static pthread_mutex_t cfgdb_mutex = PTHREAD_MUTEX_INITIALIZER;
     35
     36// These entries will not be printed to logfiles
     37static const std::set<CStr> g_UnloggedEntries = {
     38    "lobby.password",
     39    "lobby.buddies"
     40};
    3541
    3642CConfigDB::CConfigDB()
     
    369375            CStr key(header + name);
    370376            newMap[key] = values;
    371             if (key == "lobby.password")
     377            if (g_UnloggedEntries.find(key) != g_UnloggedEntries.end())
    372378                LOGMESSAGE("Loaded config string \"%s\"", key);
    373379            else
Note: See TracChangeset for help on using the changeset viewer.