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

Add logging level control for gltf exports #2299

Merged

Conversation

buildxyz-git
Copy link
Contributor

Issue: Exporting scene as gltf when using python built as a module is very noisy with INFO logging entries.

I have made changes to ExportGLTF2_Base in:
blender/scripts/addons_core/io_scene_gltf2/__init__.py

changes support setting the log level instead of using the hardcoded INFO value here which produces way to much output when exporting.

ImportGLTF2 already has a pattern for this here so I created a global set_debug_level function they can both use in the same manner.

The user can now set the log level before exporting by setting bpy.app.debug_value like:

bpy.app.debug_value = 2
bpy.ops.export_scene.gltf(...)

This will solve issue 2267

@CLAassistant
Copy link

CLAassistant commented Jul 26, 2024

CLA assistant check
All committers have signed the CLA.

@julienduroure
Copy link
Collaborator

Thanks for the PR
I will have a look soon

@julienduroure julienduroure added this to the Blender 4.3 milestone Aug 15, 2024
@julienduroure julienduroure linked an issue Aug 26, 2024 that may be closed by this pull request
@julienduroure
Copy link
Collaborator

Merged, thanks!

@julienduroure julienduroure merged commit 6cf79ff into KhronosGroup:main Aug 30, 2024
2 checks passed
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.

log level setting in export
3 participants