Skip to content
This repository was archived by the owner on Oct 22, 2025. It is now read-only.

Commit 73c59ee

Browse files
committed
chore: make startup logs easier to read (#1137)
1 parent 53855fb commit 73c59ee

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

packages/core/src/drivers/file-system/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ export class FileSystemManagerDriver implements ManagerDriver {
295295

296296
extraStartupLog() {
297297
return {
298-
actors: this.#state.actorCountOnStartup,
298+
instances: this.#state.actorCountOnStartup,
299299
data: this.#state.storagePath,
300300
};
301301
}

packages/core/src/registry/mod.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,16 @@ export class Registry<A extends RegistryActors> {
6969
const client = createClientWithDriver<this>(clientDriver);
7070

7171
const driverLog = managerDriver.extraStartupLog?.() ?? {};
72-
logger().info("rivetkit started", {
72+
logger().info("rivetkit ready", {
7373
driver: config.driver.name,
74-
studio: getStudioUrl(config),
74+
definitions: Object.keys(this.#config.use).length,
7575
...driverLog,
7676
});
77+
if (config.studio?.enabled) {
78+
logger().info("studio ready", {
79+
url: getStudioUrl(config),
80+
});
81+
}
7782

7883
return {
7984
client,

packages/core/src/test/mod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function serve(registry: Registry<any>, inputConfig?: InputConfig): ServerType {
5151
logger().info("rivetkit started", {
5252
hostname: config.hostname,
5353
port: config.port,
54-
studio: getStudioUrl(config),
54+
definitions: Object.keys(registry.config.use).length,
5555
});
5656

5757
return server;

0 commit comments

Comments
 (0)