From d0fdd823eb0ce7414463e6486ed2d716f930e161 Mon Sep 17 00:00:00 2001 From: Aria Minaei Date: Tue, 27 Sep 2022 23:31:47 +0200 Subject: [PATCH] Log instead of warn when studio is initialized already This should make it a little cleaner when `studio.initialize()` is called in a hot-reloaded module. --- theatre/studio/src/Studio.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/theatre/studio/src/Studio.ts b/theatre/studio/src/Studio.ts index 3e43449..ec3fa34 100644 --- a/theatre/studio/src/Studio.ts +++ b/theatre/studio/src/Studio.ts @@ -116,8 +116,8 @@ export class Studio { async initialize(opts?: Parameters[0]) { if (this._initializeFnCalled) { - console.warn( - `\`studio.initialize()\` is already called. You only need to call \`studio.initialize()\` once.`, + console.log( + `\`studio.initialize()\` is already called. Ignoring subsequent calls.`, ) return this._initializedDeferred.promise }