Skip to content

Commit cf8c16b

Browse files
author
Toms Bauģis
committed
get logger for 'tldextract' specifically, so that frameworks like django can use a reliable logger name to adjust the log level
1 parent 9fd7803 commit cf8c16b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tldextract/tldextract.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def resource_stream(cls, package, resource_name):
4848
import urllib2
4949
import urlparse
5050

51-
LOG = logging.getLogger(__file__)
51+
LOG = logging.getLogger("tldextract")
5252

5353
SCHEME_RE = re.compile(r'^([' + urlparse.scheme_chars + ']+:)?//')
5454
IP_RE = re.compile(r'^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$')

0 commit comments

Comments
 (0)