[NUUG fiksgatami] Mapit fill up the apache log with sha/hashlib warning

Petter Reinholdtsen pere at hungry.com
Tue Feb 15 15:13:55 CET 2011


In /var/log/apache2/error.log, messages like this now show up
regularly:

  [Tue Feb 15 15:04:13 2011] [error] /srv/fiksgatami-dev.nuug.no/mapit/pylib/mapit/ratelimitcache.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  [Tue Feb 15 15:04:13 2011] [error]   import functools, sha
  [Tue Feb 15 15:04:23 2011] [error] /srv/fiksgatami-dev.nuug.no/mapit/pylib/mapit/ratelimitcache.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  [Tue Feb 15 15:04:23 2011] [error]   import functools, sha
  [Tue Feb 15 15:12:10 2011] [error] /srv/fiksgatami-dev.nuug.no/mapit/pylib/mapit/ratelimitcache.py:4: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
  [Tue Feb 15 15:12:10 2011] [error]   import functools, sha

Mentioning it here, as I suspect this might fill up the log when the
service get popular.

The proposed fix, to rewrite the source to use hashlib instead, seem
like a simple fix, but I have not tried it yet.

Happy hacking,
-- 
Petter Reinholdtsen


More information about the fiksgatami mailing list