aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--cgi/manage.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/cgi/manage.py b/cgi/manage.py
index 61cf95e..5def5c5 100644
--- a/cgi/manage.py
+++ b/cgi/manage.py
@@ -3,9 +3,8 @@ import _mysql
import os
import cgi
import shutil
-import imaplib
-import poplib
import datetime
+import logging
from database import *
from settings import Settings
@@ -40,8 +39,8 @@ def manage(self, path_split):
str(timestamp() - 604800)) # one week
else:
page += _('Incorrect username/password.')
- logAction('', 'Failed log-in. U:'+_mysql.escape_string(
- self.formdata['username'])+' IP:'+self.environ["REMOTE_ADDR"])
+ logAction('', 'Failed log-in. U:'+_mysql.escape_string(self.formdata['username'])+' IP logged.')
+ logging.warn("Failed log-in. U:{} IP:{}".format(self.formdata['username'], self.environ["REMOTE_ADDR"]))
else:
# Validate existing session
manage_cookie = getCookie(self, 'weabot_manage')