1

我遇到了一些奇怪的事情:我的 console.log 充满了这样的消息:

DONE:0
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:1
DONE:2
DONE:0
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:1
DONE:2
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:3
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:4
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>
DONE:5
Got Location:http://localhost:8474/db/data/index/node/<index-name>/<property-name>/<property-value>/<some int value>

这很烦人,因为文件在两天内增长到 1G。这些看起来像调试消息,但我找不到罪魁祸首。

我正在使用 Neo4j 1.9、gremlin 插件 1.5、neography 1.0.9

4

1 回答 1

1

我在文件 'community/server/src/main/java/org/neo4j/server/rest/batch/BatchOperationResults.java' 中找到了第 69 行和第 72 行的两个“System.out.println”。

public void addOperationResult( String from, Integer id, String body, String location )
{
    if(firstResult)
        firstResult = false;
    else
        results.append(',');

    results.append( OPENING_CURLY );

    if ( id != null )
    {
        results.append( "\"id\":" )
                .append( id.toString() )
                .append( COMMA );
    }

    System.out.println("DONE:" + id);
    if ( location != null )
    {
        System.out.println("Got Location:" + location);
        locations.put( id, location );
        results.append( "\"location\":" )
                .append( JsonHelper.createJsonFrom( location ) )
                .append( COMMA );
    }
于 2013-09-23T14:58:14.840 回答