mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-05 21:52:26 +00:00
Remove clog completely
This commit is contained in:
parent
bcaaaac090
commit
1069b13992
@ -73,19 +73,9 @@ extern void log_raw_packet(LogType type, uint16 seq, const BasePacket *p);
|
|||||||
|
|
||||||
#ifdef DISABLE_LOGSYS
|
#ifdef DISABLE_LOGSYS
|
||||||
//completely disabled, this is the best I can come up with since we have no variadic macros
|
//completely disabled, this is the best I can come up with since we have no variadic macros
|
||||||
inline void clog(LogType, const char *, ...) {}
|
|
||||||
inline void zlog(LogType, const char *, ...) {}
|
inline void zlog(LogType, const char *, ...) {}
|
||||||
#else //!DISABLE_LOGSYS
|
#else //!DISABLE_LOGSYS
|
||||||
#ifdef WORLD
|
#ifdef WORLD
|
||||||
class Client;
|
|
||||||
extern void log_message_client(LogType type, Client *who, const char *fmt, ...);
|
|
||||||
#define clog( type, format, ...) \
|
|
||||||
do { \
|
|
||||||
if(log_type_info[ type ].enabled) { \
|
|
||||||
log_message_client(type, this, format, ##__VA_ARGS__); \
|
|
||||||
} \
|
|
||||||
} while(false)
|
|
||||||
|
|
||||||
class ZoneServer;
|
class ZoneServer;
|
||||||
extern void log_message_zone(LogType type, ZoneServer *who, const char *fmt, ...);
|
extern void log_message_zone(LogType type, ZoneServer *who, const char *fmt, ...);
|
||||||
#define zlog( type, format, ...) \
|
#define zlog( type, format, ...) \
|
||||||
|
|||||||
@ -1270,12 +1270,9 @@ void Client::SendGuildList() {
|
|||||||
//ask the guild manager to build us a nice guild list packet
|
//ask the guild manager to build us a nice guild list packet
|
||||||
outapp->pBuffer = guild_mgr.MakeGuildList("", outapp->size);
|
outapp->pBuffer = guild_mgr.MakeGuildList("", outapp->size);
|
||||||
if(outapp->pBuffer == nullptr) {
|
if(outapp->pBuffer == nullptr) {
|
||||||
clog(GUILDS__ERROR, "Unable to make guild list!");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
clog(GUILDS__OUT_PACKETS, "Sending OP_GuildsList of length %d", outapp->size);
|
|
||||||
// _pkt(GUILDS__OUT_PACKET_TRACE, outapp);
|
|
||||||
|
|
||||||
eqs->FastQueuePacket((EQApplicationPacket **)&outapp);
|
eqs->FastQueuePacket((EQApplicationPacket **)&outapp);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user