diff options
| author | Alon Levy <alon@pobox.com> | 2014-12-23 12:55:12 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-12-23 12:55:14 +0200 |
| commit | 40c4d1da1acc154ed4b951f7f8f73135215f2ff8 (patch) | |
| tree | f3c6bf71009af4e16cdbf111dc6be3bbbddc2723 /src/server | |
| parent | 3dbebde0ad179390bd17b902c618f2d6a12cdf46 (diff) | |
neo4j_util: fix use of javascriptism
Diffstat (limited to 'src/server')
| -rw-r--r-- | src/server/neo4j_util.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/server/neo4j_util.py b/src/server/neo4j_util.py index 46672cfa..9fb982b2 100644 --- a/src/server/neo4j_util.py +++ b/src/server/neo4j_util.py @@ -9,9 +9,12 @@ import six.moves.urllib_error as urllib_error import model import string import time +import logging from util import debug_log_duration +log = logging.getLogger('rhizi') + class Neo4JException(Exception): def __init__(self, error_set): self.error_set = error_set @@ -218,9 +221,9 @@ def gen_query_create_from_link_map(link_map, input_to_DB_property_map=lambda _: # TODO - somewhere else? if '__type' in prop_dict: - console.log('warning: client is sending us __type link property, it should not') + log.warn('client is sending us __type link property, it should not') if 'name' in prop_dict: - console.log('warning: client is sending us name link property, it should not') + log.warn('client is sending us name link property, it should not') del prop_dict['__type'] del prop_dict['name'] |
