Show
Ignore:
Timestamp:
01/27/10 17:20:36 (6 months ago)
Author:
JensDiemer
Message:

cut exception message text to LogEntry?.message max_length, to get no "Data truncated..." warning

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/0.9/pylucid_project/middlewares/pylucid_objects.py

    r2433 r2508  
    4747                return 
    4848 
     49        # cut exception message text to LogEntry.message max_length, to get no "Data truncated..." warning 
     50        message = str(exception)[:255] 
     51 
    4952        LogEntry.objects.log_action( 
    50             app_label="pylucid", action="PyLucidMiddleware.process_exception()", message=str(exception), 
     53            app_label="pylucid", action="PyLucidMiddleware.process_exception()", message=message, 
    5154            long_message=traceback.format_exc() 
    5255        )