Skip to content

Commit

Permalink
improve/optimize logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Apr 24, 2022
1 parent b23e10c commit 78395b3
Show file tree
Hide file tree
Showing 204 changed files with 1,241 additions and 1,077 deletions.
2 changes: 1 addition & 1 deletion coders/aai.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ static Image *ReadAAIImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/art.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static Image *ReadARTImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/avs.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ static Image *ReadAVSImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/bgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static Image *ReadBGRImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/cals.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ static Image *ReadCALSImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/caption.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ static Image *ReadCAPTIONImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/cin.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ static Image *ReadCINImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static Image *ReadCLIPImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/clipboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ static Image *ReadCLIPBOARDImage(const ImageInfo *image_info,

assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/cmyk.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static Image *ReadCMYKImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/cut.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ static Image *ReadCUTImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -3098,7 +3098,7 @@ static Image *ReadDCMImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dds.c
Original file line number Diff line number Diff line change
Expand Up @@ -1657,7 +1657,7 @@ static Image *ReadDDSImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dib.c
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ static Image *ReadDIBImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/djvu.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ static Image *ReadDJVUImage(const ImageInfo *image_info,
assert(image_info->signature == MagickCoreSignature);


if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s", image_info->filename);

assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dng.c
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ static Image *ReadDNGImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dot.c
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ static Image *ReadDOTImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dps.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static Image *ReadDPSImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/dpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -697,7 +697,7 @@ static Image *ReadDPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/emf.c
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ static Image *ReadEMFImage(const ImageInfo *image_info,

assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/ept.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ static Image *ReadEPTImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/exr.c
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ static Image *ReadEXRImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/fax.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ static Image *ReadFAXImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/fd.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ static Image *ReadFDImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/fits.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static Image *ReadFITSImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/flif.c
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ static Image *ReadFLIFImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/fpx.c
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ static Image *ReadFPXImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/gif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ static Image *ReadGIFImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
4 changes: 2 additions & 2 deletions coders/gradient.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static Image *ReadXCImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down Expand Up @@ -200,7 +200,7 @@ static Image *ReadGRADIENTImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/gray.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ static Image *ReadGRAYImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/hald.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ static Image *ReadHALDImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/hdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ static Image *ReadHDRImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/heic.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static Image *ReadHEICImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/hrz.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static Image *ReadHRZImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/inline.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ static Image *ReadINLINEImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/jbig.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ static Image *ReadJBIGImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/jnx.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ static Image *ReadJNXImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/jp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ static Image *ReadJP2Image(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/jpeg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ static Image *ReadJPEGImage_(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/label.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ static Image *ReadLABELImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ static Image *ReadMACImage(const ImageInfo *image_info,ExceptionInfo *exception)
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(exception != (ExceptionInfo *) NULL);
Expand Down
2 changes: 1 addition & 1 deletion coders/magick.c
Original file line number Diff line number Diff line change
Expand Up @@ -13255,7 +13255,7 @@ static MagickBooleanType WriteMAGICKImage(const ImageInfo *image_info,
*/
assert(image_info != (const ImageInfo *) NULL);
assert(image_info->signature == MagickCoreSignature);
if (image_info->debug != MagickFalse)
if (IsEventLogging() != MagickFalse)
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",
image_info->filename);
assert(image != (Image *) NULL);
Expand Down

0 comments on commit 78395b3

Please sign in to comment.