From a6c521a73e88d6fcb6e8c4f1a5d2550bed2259b3 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Fri, 16 Jan 2015 21:58:08 -0600 Subject: [PATCH] Keep mlog happy until it is completely replaced --- common/logsys.h | 2 +- zone/zone_logsys.cpp | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/common/logsys.h b/common/logsys.h index 84741cdb4..f6a23e5db 100644 --- a/common/logsys.h +++ b/common/logsys.h @@ -159,7 +159,7 @@ extern void log_raw_packet(LogType type, uint16 seq, const BasePacket *p); extern void log_packet_mob(LogType type, Mob *who, const BasePacket *p); #define mpkt( type, packet) \ do { \ - if(IsLoggingEnabled()) \ + if(1) \ if(log_type_info[ type ].enabled) { \ log_packet_mob(type, this, packet); \ } \ diff --git a/zone/zone_logsys.cpp b/zone/zone_logsys.cpp index 50362c6b1..10d563de7 100644 --- a/zone/zone_logsys.cpp +++ b/zone/zone_logsys.cpp @@ -25,8 +25,8 @@ #include void log_message_mob(LogType type, Mob *who, const char *fmt, ...) { - if(!who->IsLoggingEnabled()) - return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common + // if(!who->IsLoggingEnabled()) + // return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common char prefix_buffer[256]; snprintf(prefix_buffer, 255, "[%s] %s: ", log_type_info[type].name, who->GetName()); @@ -39,8 +39,8 @@ void log_message_mob(LogType type, Mob *who, const char *fmt, ...) { } void log_message_mobVA(LogType type, Mob *who, const char *fmt, va_list args) { - if(!who->IsLoggingEnabled()) - return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common + // if(!who->IsLoggingEnabled()) + // return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common char prefix_buffer[256]; snprintf(prefix_buffer, 255, "[%s] %s: ", log_type_info[type].name, who->GetName()); @@ -50,15 +50,15 @@ void log_message_mobVA(LogType type, Mob *who, const char *fmt, va_list args) { } void log_hex_mob(LogType type, Mob *who, const char *data, uint32 length, uint8 padding) { - if(!who->IsLoggingEnabled()) - return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common + // if(!who->IsLoggingEnabled()) + // return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common log_hex(type,data,length,padding); } void log_packet_mob(LogType type, Mob *who, const BasePacket *p) { - if(!who->IsLoggingEnabled()) - return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common + // if(!who->IsLoggingEnabled()) + // return; //could prolly put this in the macro, but it feels even dirtier than prototyping this in common char buffer[80]; p->build_header_dump(buffer);