Neo4j console.log file



我遇到了一些奇怪的事情:我的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

我在文件'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 );
    }

最新更新