peng %!s(int64=2) %!d(string=hai) anos
pai
achega
a9f1274a56
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      controller/beian.py

+ 3 - 1
controller/beian.py

@@ -2,9 +2,11 @@
 # @File      : beian.py
 # @Time      : 2023/3/30 19:10
 from django.http import HttpResponse
+import logging
 
-
+logger = logging.getLogger('django')
 def beianPath(request, **kwargs):
+    logger.info('域名:{}'.format(request.get_host()))
     html = """
     <!DOCTYPE html>
 <html lang="en">