π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Mig
Manav Rathi62c413959eda
diff --git a/web/apps/auth/src/pages/_app.tsx b/web/apps/auth/src/pages/_app.tsxindex b858719fca..d403df1d28 100644--- a/web/apps/auth/src/pages/_app.tsx+++ b/web/apps/auth/src/pages/_app.tsx@@ -77,7 +77,7 @@ export default function App({ Component, pageProps }: AppProps) {useEffect(() => {setupI18n().finally(() => setIsI18nReady(true));const userId = (getData(LS_KEYS.USER) as User)?.id;- logStartupBanner(APPS.AUTH, userId);+ logStartupBanner(appName, userId);logUnhandledErrorsAndRejections(true);HTTPService.setHeaders({"X-Client-Package": clientPackageName[appName],diff --git a/web/apps/photos/src/pages/_app.tsx b/web/apps/photos/src/pages/_app.tsxindex fc970c955d..8b2bf51a4d 100644--- a/web/apps/photos/src/pages/_app.tsx+++ b/web/apps/photos/src/pages/_app.tsx@@ -154,7 +154,7 @@ export default function App({ Component, pageProps }: AppProps) {useEffect(() => {setupI18n().finally(() => setIsI18nReady(true));const userId = (getData(LS_KEYS.USER) as User)?.id;- logStartupBanner(APPS.PHOTOS, userId);+ logStartupBanner(appName, userId);logUnhandledErrorsAndRejections(true);HTTPService.setHeaders({"X-Client-Package": clientPackageName[appName],diff --git a/web/packages/next/log-web.ts b/web/packages/next/log-web.tsindex f319118ce6..5b809875c1 100644--- a/web/packages/next/log-web.ts+++ b/web/packages/next/log-web.ts@@ -1,21 +1,19 @@import { isDevBuild } from "@/next/env";import log from "@/next/log";+import type { AppName } from "./types/app";/*** Log a standard startup banner.** This helps us identify app starts and other environment details in the logs.*- * @param appId An identifier of the app that is starting.+ * @param appName The {@link AppName} of the app that is starting.* @param userId The uid for the currently logged in user, if any.*/-export const logStartupBanner = (appId: string, userId?: number) => {- // TODO (MR): Remove the need to lowercase it, change the enum itself.- const appIdL = appId.toLowerCase();+export const logStartupBanner = (appName: AppName, userId?: number) => {const sha = process.env.GIT_SHA;const buildId = isDevBuild ? "dev " : sha ? `git ${sha} ` : "";-- log.info(`Starting ente-${appIdL}-web ${buildId}uid ${userId ?? 0}`);+ log.info(`Starting ente-${appName}-web ${buildId}uid ${userId ?? 0}`);};/**