Skip to content

[fix] fix ucm patch causes unexpected log directory created#913

Open
Lijiachen1018 wants to merge 3 commits into
ModelEngine-Group:developfrom
Lijiachen1018:dev_logger_fix
Open

[fix] fix ucm patch causes unexpected log directory created#913
Lijiachen1018 wants to merge 3 commits into
ModelEngine-Group:developfrom
Lijiachen1018:dev_logger_fix

Conversation

@Lijiachen1018
Copy link
Copy Markdown
Contributor

Purpose

Fix ucm patch causes unexpected log directory created.

Modifications

Remove import patch from ucm/__init__.py. The ucm_patch.pth runs on every Python startup which imports ucm.* module. And importing ucm currently imports patch_logger which will create the log folder globally.

Test

No longer create unexpected log directory.
image

Also test on online and offline inference, the logger works as usual.
image
image

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.

1 participant