Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve logging and fix arm64 warnings when printing integers with %d #721

Merged
merged 1 commit into from
May 22, 2014

Conversation

rivera-ernesto
Copy link
Contributor

No description provided.

@@ -8,6 +8,10 @@

#import "SDWebImagePrefetcher.h"

#if !defined(DEBUG) && !defined (SD_VERBOSE)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Output also for DEBUG builds.

@rs
Copy link
Member

rs commented May 21, 2014

A library shouldn't change a global macro like NSLog.

@rivera-ernesto
Copy link
Contributor Author

This is inside a *.m file so it just modifies it from that particular file and doesn't change the global macro.

Besides suppressing NSLog calls is a common practice.

@rs
Copy link
Member

rs commented May 22, 2014

You're right, nevermind

rs pushed a commit that referenced this pull request May 22, 2014
Improve logging and fix arm64 warnings when printing integers with %d
@rs rs merged commit 1c50603 into SDWebImage:master May 22, 2014
@rivera-ernesto rivera-ernesto deleted the improve_logging branch May 22, 2014 07:22
@rivera-ernesto
Copy link
Contributor Author

Thanks.

Actually I was thinking of adding CocoaLumberjack support as well, but there are not many log messages. No sure if it's because no good log library was used or because SDWebImage works so well that it doesn't need to log at all ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants