# -*- coding: utf-8 -*-

import os
import logging
import datetime

from website import settings


def format_now():
    return datetime.datetime.now().isoformat()


def add_file_logger(logger, script_name, suffix=None):
    _, name = os.path.split(script_name)
    if suffix is not None:
        name = '{0}-{1}'.format(name, suffix)
    file_handler = logging.FileHandler(
        os.path.join(
            settings.LOG_PATH,
            '.'.join([name, format_now(), 'log'])
        )
    )
    logger.addHandler(file_handler)

@@ -254,16 +254,44 @@
 t_name)%0A
+    name = name.rstrip('c')%0A
     if s

Make script log file names more consistent