Skip to content

Commit

Permalink
more debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
habdelra committed May 13, 2024
1 parent 9b52a72 commit eae67a0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/host/app/lib/current-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -598,6 +598,9 @@ export class CurrentRun {
entry: SearchEntryWithErrors,
deferred: Deferred<void>,
) {
console.log(
`updating index entry: ${instanceURL.href}. db-indexer-enabled=${isDbIndexerEnabled}`,
);
if (isDbIndexerEnabled()) {
try {
await this.batch.updateEntry(assertURLEndsWithJSON(instanceURL), entry);
Expand All @@ -610,8 +613,10 @@ export class CurrentRun {
this.#entrySetter(instanceURL, entry);
}
if (entry.type === 'entry') {
console.log(`successfully indexed ${instanceURL.href}`);
this.stats.instancesIndexed++;
} else {
console.log(`error document generated for ${instanceURL.href}`);
this.stats.instanceErrors++;
}
}
Expand Down
2 changes: 2 additions & 0 deletions packages/realm-server/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ import fs from 'fs';

let log = logger('main');

console.log(`LOG_LEVELS=${process.env.LOG_LEVELS}`);

if (process.env.REALM_SENTRY_DSN) {
log.info('Setting up Sentry.');
Sentry.init({
Expand Down

0 comments on commit eae67a0

Please sign in to comment.