Skip to content

Commit

Permalink
Add logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
Minglee01 committed Mar 2, 2017
1 parent 6d1fd3c commit c8436c5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions model_logging/migrations/0001_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
from __future__ import unicode_literals
from django.db import models, migrations
from unittest.mock import Mock
import logging

"""
The assumption is that a user who is upgrading from 0.1.0 to this version will already have pgcrypto installed. We also check this in 0003 so that they have a verbose error message.
Expand All @@ -11,6 +12,7 @@
try:
import pgcrypto.fields
except ImportError:
logging.warning('Since pgcrypto is not installed. We are now mocking it.')
pgcrypto = Mock()

from django.conf import settings
Expand Down

0 comments on commit c8436c5

Please sign in to comment.