Skip to content

Commit c11f71d

Browse files
committed
src: print MKSNAPSHOT debug logs to stderr
1 parent a9a4778 commit c11f71d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/node_realm.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void Realm::PrintInfoForSnapshot() {
223223
fprintf(stderr, "BaseObjects of the Realm:\n");
224224
size_t i = 0;
225225
ForEachBaseObject([&](BaseObject* obj) {
226-
std::cout << "#" << i++ << " " << obj << ": " << obj->MemoryInfoName()
226+
std::cerr << "#" << i++ << " " << obj << ": " << obj->MemoryInfoName()
227227
<< "\n";
228228
});
229229

src/node_snapshotable.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1075,7 +1075,7 @@ ExitCode SnapshotBuilder::CreateSnapshot(SnapshotData* out,
10751075

10761076
if (per_process::enabled_debug_list.enabled(DebugCategory::MKSNAPSHOT)) {
10771077
env->ForEachRealm([](Realm* realm) { realm->PrintInfoForSnapshot(); });
1078-
printf("Environment = %p\n", env);
1078+
fprintf(stderr, "Environment = %p\n", env);
10791079
}
10801080

10811081
// Serialize the native states

0 commit comments

Comments
 (0)