Skip to content

Commit 48f817a

Browse files
committed
fix: Warning
1 parent bca6795 commit 48f817a

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/c2pa/lib.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,9 @@
1616
# Debug flag for library loading
1717
DEBUG_LIBRARY_LOADING = False
1818

19-
# Configure logging
20-
logging.basicConfig(
21-
level=logging.INFO,
22-
format='%(asctime)s - %(levelname)s - %(message)s',
23-
force=True # Force configuration even if already configured
24-
)
25-
# Create a module-specific logger
19+
# Create a module-specific logger with NullHandler to avoid interfering with global configuration
2620
logger = logging.getLogger("c2pa")
21+
logger.addHandler(logging.NullHandler())
2722

2823

2924
class CPUArchitecture(Enum):

0 commit comments

Comments
 (0)