Skip to content

Commit 4e1fb99

Browse files
authored
Merge pull request #139 from contentauth/mathern/update-logging
fix: Update logging setup
2 parents 4dc3831 + 48f817a commit 4e1fb99

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

src/c2pa/lib.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +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-
logger = logging.getLogger(__name__)
19+
# Create a module-specific logger with NullHandler to avoid interfering with global configuration
20+
logger = logging.getLogger("c2pa")
21+
logger.addHandler(logging.NullHandler())
2622

2723

2824
class CPUArchitecture(Enum):
-53.5 KB
Loading

0 commit comments

Comments
 (0)