mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-15 03:28:49 -07:00
hide login passwords from server log; call logDebugMessage in S_PH thread instead of Server thread
This commit is contained in:
parent
2a5050fdc4
commit
80439762cf
7 changed files with 20 additions and 11 deletions
|
|
@ -163,7 +163,6 @@ int main(int argc, char *argv[])
|
|||
testHash();
|
||||
|
||||
Servatrice *server = new Servatrice(settings);
|
||||
QObject::connect(server, SIGNAL(logDebugMessage(QString, void *)), logger, SLOT(logMessage(QString, void *)));
|
||||
QObject::connect(server, SIGNAL(destroyed()), &app, SLOT(quit()), Qt::QueuedConnection);
|
||||
int retval = 0;
|
||||
if (server->initServer()) {
|
||||
|
|
|
|||
|
|
@ -197,6 +197,11 @@ void ServerSocketInterface::transmitProtocolItem(const ServerMessage &item)
|
|||
emit outputBufferChanged();
|
||||
}
|
||||
|
||||
void ServerSocketInterface::logDebugMessage(const QString &message)
|
||||
{
|
||||
logger->logMessage(message, this);
|
||||
}
|
||||
|
||||
Response::ResponseCode ServerSocketInterface::processExtendedSessionCommand(int cmdType, const SessionCommand &cmd, ResponseContainer &rc)
|
||||
{
|
||||
switch ((SessionCommand::SessionCommandType) cmdType) {
|
||||
|
|
|
|||
|
|
@ -57,6 +57,8 @@ private slots:
|
|||
void flushOutputBuffer();
|
||||
signals:
|
||||
void outputBufferChanged();
|
||||
protected:
|
||||
void logDebugMessage(const QString &message);
|
||||
private:
|
||||
QMutex outputBufferMutex;
|
||||
Servatrice *servatrice;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue