aboutsummaryrefslogtreecommitdiff
path: root/cgi/post.py
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/post.py')
-rw-r--r--cgi/post.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/cgi/post.py b/cgi/post.py
index da2ad47..e27b971 100644
--- a/cgi/post.py
+++ b/cgi/post.py
@@ -7,6 +7,7 @@ import threading
import Queue
import _mysql
import formatting
+import logging
from database import *
from template import *
@@ -49,7 +50,7 @@ class Post(object):
return self.post
def insert(self):
- logTime("Insertando Post")
+ logging.info("Insertando Post")
post_values = []
for key, value in self.post.iteritems():
@@ -715,7 +716,7 @@ def deletePost(postid, password, deltype='0', imageonly=False, quick=False):
if int(post["parentid"]) == 0:
deleteReplies(post)
- logTime("Deleting post " + str(postid))
+ logging.info("Deleting post " + str(postid))
if deltype != '0' and post["parentid"] != '0':
# Soft delete (recycle bin)
UpdateDb("UPDATE `posts` SET `IS_DELETED` = %s WHERE `boardid` = %s AND `id` = %s LIMIT 1" % (deltype, board["id"], post["id"]))
@@ -788,7 +789,7 @@ def trimThreads():
"""
Delete any threads which have passed the MAX_THREADS setting
"""
- logTime("Trimming threads")
+ logging.debug("Trimming threads")
board = Settings._.BOARD
archived = False
@@ -1026,7 +1027,7 @@ def regenerateHome():
"""
Update index.html in the boards directory with useful data for users
"""
- logTime("Updating home")
+ logging.debug("Updating home")
t = datetime.datetime.now()
limit = Settings.HOME_LASTPOSTS