NameError

Help
2009-03-26
2012-12-15
  • I just noticed that I'm periodically getting this error:

        NameError: global name 'record' is not defined
        Traceback (most recent call last):
          File "/usr/lib/python2.4/logging/handlers.py", line 72, in emit
            self.doRollover()
          File "/usr/lib/python2.4/logging/handlers.py", line 283, in doRollover
            self.handleError(record)

    I'm for sure getting it when I click on any comments and any source code links. Actually, it looks like I'm getting it with pretty much every http request.

    It doesn't _appear_ to be affecting the application.

    Any ideas?

    Thanks,

    jjb

     
    • John Dickson
      John Dickson
      2009-03-26

      Hi Joseph

      Looks like a problem in the log rolling behaviour in Python's logging module.

      You should perhaps check that the JCR user has appropriate permissions in the JCR logs directory and any files in it.  You might also like to delete the current log file, restart JCR, and see if that makes a difference.

      Cheers .................... JD