Skip to content

Commit 0d16f36

Browse files
Mats-SXknutwalker
andcommitted
Log record import data on INFO level
AuraDS doesn't run on DEBUG level by default Co-authored-by: Paul Horn <paul.horn@neo4j.com>
1 parent 83098fb commit 0d16f36

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

core/src/integrationTest/java/org/neo4j/gds/core/GraphLoaderTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ void shouldLogProgressWithNativeLoading() {
127127
.build()
128128
.graph();
129129

130-
log.assertContainsMessage(TestLog.DEBUG, "Loading :: Nodes :: Store Scan :: Imported 3 records and 1 properties");
131-
log.assertContainsMessage(TestLog.DEBUG, "Loading :: Relationships :: Store Scan :: Imported 4 records and 0 properties");
130+
log.assertContainsMessage(TestLog.INFO, "Loading :: Nodes :: Store Scan :: Imported 3 records and 1 properties");
131+
log.assertContainsMessage(TestLog.INFO, "Loading :: Relationships :: Store Scan :: Imported 4 records and 0 properties");
132132
}
133133

134134
@Test
@@ -163,13 +163,13 @@ void shouldTrackProgressWithNativeLoading() {
163163
)
164164
.doesNotContain("Loading :: Nodes :: Property Index Scan :: Start");
165165

166-
assertThat(log.getMessages(TestLog.DEBUG))
166+
assertThat(log.getMessages(TestLog.INFO))
167167
.extracting(removingThreadId())
168168
.contains("Loading :: Nodes :: Store Scan :: Start using NodeCursorBasedScanner")
169169
.contains("Loading :: Relationships :: Store Scan :: Start using RelationshipScanCursorBasedScanner");
170170

171-
log.assertContainsMessage(TestLog.DEBUG, "Loading :: Nodes :: Store Scan :: Imported 3 records and 1 properties");
172-
log.assertContainsMessage(TestLog.DEBUG, "Loading :: Relationships :: Store Scan :: Imported 4 records and 0 properties");
171+
log.assertContainsMessage(TestLog.INFO, "Loading :: Nodes :: Store Scan :: Imported 3 records and 1 properties");
172+
log.assertContainsMessage(TestLog.INFO, "Loading :: Relationships :: Store Scan :: Imported 4 records and 0 properties");
173173
}
174174

175175
@Test

native-projection/src/main/java/org/neo4j/gds/projection/ScanningRecordsImporter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public final T call() {
7272
)) {
7373
progressTracker.beginSubTask("Store Scan");
7474

75-
progressTracker.logDebug(formatWithLocale("Start using %s", storeScanner.getClass().getSimpleName()));
75+
progressTracker.logInfo(formatWithLocale("Start using %s", storeScanner.getClass().getSimpleName()));
7676

7777
var taskFactory = recordScannerTaskFactory(nodeCount, sizing, storeScanner);
7878
var taskRunner = new RecordScannerTaskRunner(threadCount, taskFactory);
@@ -91,7 +91,7 @@ public final T call() {
9191
.divide(bigNanos)
9292
.longValueExact();
9393

94-
progressTracker.logDebug(
94+
progressTracker.logInfo(
9595
formatWithLocale(
9696
"Imported %,d records and %,d properties from %s (%,d bytes);" +
9797
" took %.3f s, %,.2f %1$ss/s, %s/s (%,d bytes/s) (per thread: %,.2f %1$ss/s, %s/s (%,d bytes/s))",

0 commit comments

Comments
 (0)