我使用默认的 django 记录器类。
import logging
此类也将 django_session 表内容记录到文件中:
2013-09-19 01:37:55,818 DEBUG (0.003) UPDATE
django_session
SET session_data
= 'NGNmYTgxNmZkZDA5YTAzNmUyOWI0ODUxOWVlOTUyMmQ2NDg0OWMyNjqAAn1xAShVCmFkbWluX3Vz\nZXJxAmNkamFuZ28uZGIubW9kZWxzLmJhc2UKbW9kZWxfdW5waWNrbGUKcQNjd3Rvb2xzMi5hcHBz\nLkFkbWluaXN0cmF0aW9uLm1vZGVscwpBZG1pbl91c2VyCnEEXWNkamFuZ28uZGIubW9kZWxzLmJh\nc2UKc2ltcGxlX2NsYXNzX2ZhY3RvcnkKcQWHUnEGfXEHKFUJZGF0ZV90aW1lcQhjZGF0ZXRpbWUK\nZGF0ZXRpbWUKcQlVCgfcCBsSDggAAACFUnEKaAJYFQAAAHNtdXN0YWZhQGRpbmNsb3VkLmNvbXEL\nVRJfYWRtaW5fZ3JvdXBfY2FjaGVxDGgDY3d0b29sczIuYXBwcy5BZG1pbmlzdHJhdGlvbi5tb2Rl\nbHMKQWRtaW5fZ3JvdXBzCnENXWgFh1JxDn1xDyhVBl9zdGF0ZXEQY2RqYW5nby5kYi5tb2RlbHMu\nYmFzZQpNb2RlbFN0YXRlCnERKYFxEn1xEyhVBmFkZGluZ3EUiVUCZGJxFVUHZGVmYXVsdHEWdWJV\nDmFkbWluX2dyb3VwX2lkcReKAQNVEGFkbWluX2dyb3V......
有没有办法防止这种情况发生?
如果我的问题不够清楚,请告诉我。
谢谢!