Multiplayer: change how we log activation
Use MANDATORY_INFO and set a Sentry tag when MP is active
This commit is contained in:
parent
39bc7f2acd
commit
77b6d635fe
1 changed files with 4 additions and 3 deletions
|
@ -27,9 +27,7 @@
|
||||||
//
|
//
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
|
@ -54,6 +52,7 @@
|
||||||
#include "MPServerResolver.hxx"
|
#include "MPServerResolver.hxx"
|
||||||
#include <FDM/flightProperties.hxx>
|
#include <FDM/flightProperties.hxx>
|
||||||
#include <Time/TimeManager.hxx>
|
#include <Time/TimeManager.hxx>
|
||||||
|
#include <Main/sentryIntegration.hxx>
|
||||||
|
|
||||||
#if defined(_MSC_VER) || defined(__MINGW32__)
|
#if defined(_MSC_VER) || defined(__MINGW32__)
|
||||||
#include <WS2tcpip.h>
|
#include <WS2tcpip.h>
|
||||||
|
@ -1072,7 +1071,9 @@ FGMultiplayMgr::init (void)
|
||||||
fgSetBool("/sim/multiplay/online", true);
|
fgSetBool("/sim/multiplay/online", true);
|
||||||
mInitialised = true;
|
mInitialised = true;
|
||||||
|
|
||||||
SG_LOG(SG_NETWORK, SG_ALERT, "Multiplayer mode active!");
|
|
||||||
|
SG_LOG(SG_NETWORK, SG_MANDATORY_INFO, "Multiplayer mode active");
|
||||||
|
flightgear::addSentryTag("mp", "active");
|
||||||
|
|
||||||
if (!fgGetBool("/sim/ai/enabled"))
|
if (!fgGetBool("/sim/ai/enabled"))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue