8000 Rescue commented logging calls by rsp4jack · Pull Request #45 · pedrolcl/sonivox · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Rescue commented logging calls #45

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

Merged
merged 3 commits into from
Apr 12, 2025
Merged

Rescue commented logging calls #45

merged 3 commits into from
Apr 12, 2025

Conversation

rsp4jack
Copy link
Collaborator
@rsp4jack rsp4jack commented Apr 4, 2025

Description

Rescue commented logging calls, and also added loggings for AOSP's sanity checks.

Now sonivoxrender prints logs to stderr.

Related Issues

Closes #43

Checklist

  • I have followed the contribution guidelines.
  • My code follows the coding standards.
  • I have tested my changes.

Copy link
Owner
@pedrolcl pedrolcl left a comment

Choose a reason for hiding this comment

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

Thanks!

But this needs more work.

First, in CMakeLists.txt, we have CMAKE_BUILD_TYPE which may be DEBUG or RELEASE. When building the library, tests and example program in release mode, we should avoid debugging output.

Then, I suggest to initialize debugging also in the unit tests:

#include <fstream>

#include <libsonivox/eas.h>
#include <libsonivox/eas_report.h>
#include <libsonivox/eas_reverb.h>

#include "SonivoxTestEnvironment.h"
@@ -419,8 +420,10 @@ int main(int argc, char **argv) {
    ::testing::InitGoogleTest(&argc, argv);
    int status = gEnv->initFromOptions(argc, argv);
    if (status == 0) {
        EAS_SetDebugFile(stderr, 1);
        EAS_SetDebugLevel(_EAS_SEVERITY_NOFILTER);
        status = RUN_ALL_TESTS();
        ALOGV("Test result = %d\n", status);
        EAS_Report(_EAS_SEVERITY_WARNING, "Test result = %d\n", status);
    }
    return status;
}

Please consider also adjusting the severity level on some places.

@rsp4jack rsp4jack requested a review from pedrolcl April 11, 2025 13:57
Copy link
Owner
@pedrolcl pedrolcl left a comment

Choose a reason for hiding this comment

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

Great!

@pedrolcl pedrolcl merged commit e54fecb into pedrolcl:devel Apr 12, 2025
9 of 10 checks passed
pedrolcl added a commit that referenced this pull request Apr 12, 2025
After PR #45, users should be able to choose the verbosity level
when running the rendering utility/example program.

This commit adds a `-V | --Verbosity` option. If not provided
the default severity is applied depending on the build settings.
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.

logging really should be enabled and put in use
2 participants
0