Skip to content

Many irrelevant log messages (in 1.0.0.beta.11) and potential fix [BUG] #33

Closed

Description

@jonmountjoy

Sounds Version :

  • 1.0.0-beta.11
  • iOS emulator

Despite the recent fixes here: #27 sounds is still issuing loads of polluting debug messages:

entered updateProgress
sending updateProgress: {"duration": "418", "current_position": "83.33333333333333"}
entered updateProgress
sending updateProgress: {"duration": "418", "current_position": "182.6303854875283"}
entered updateProgress
audioPlayerDidFinishPlaying
stopping ProgressTimer

Attempts to fix

  • I use Log.loggingLevel = Level.nothing; in main().
  • I updated to sounds_common 1.0.8

(Note that beta.11 still uses sounds_common 1.0.6)

Source of messages

I've tracked the messages down to Soundplayer.m.

It has loads of NSLog statements.

These are synchronous calls (so may slow things down), and NSLog has no provision for logging levels.

Apple's docs suggest hiding them behind a DEBUG preprocessor macro.

Possible solutions

  • remove them all
  • try and hide them all behind a DEBUG preprocessor macro

Activity

  1. jonmountjoy commented on Aug 20, 2020

    @jonmountjoy
    Author

    (I'm happy to take a stab at either of these)

  2. relf108 commented on Aug 21, 2020

    @relf108
    Collaborator

    Neither @bsutton nor I have much experience with Objective C so it would be great if you could have a go at this one. The preprocessor solution sounds good to me. On the other hand, the NSLog statements were put in place to debug some of the Objective C code and I think we're beyond that now so go with whichever solution you think is best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions