From 40c4d1da1acc154ed4b951f7f8f73135215f2ff8 Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 23 Dec 2014 12:55:12 +0200 Subject: neo4j_util: fix use of javascriptism --- src/server/neo4j_util.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/server') 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'] -- cgit v1.3.1