Skip to content

Commit

Permalink
Merge pull request #46539 from Expensify/arosiclair-log-config
Browse files Browse the repository at this point in the history
Log platform and config on startup

(cherry picked from commit 3670856)
  • Loading branch information
luacmartins authored and OSBotify committed Jul 31, 2024
1 parent 527b98a commit 6b2591c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Expensify.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Audio} from 'expo-av';
import React, {useCallback, useEffect, useLayoutEffect, useMemo, useRef, useState} from 'react';
import type {NativeEventSubscription} from 'react-native';
import {AppState, Linking, NativeModules} from 'react-native';
import {AppState, Linking, NativeModules, Platform} from 'react-native';
import type {OnyxEntry} from 'react-native-onyx';
import Onyx, {useOnyx, withOnyx} from 'react-native-onyx';
import ConfirmModal from './components/ConfirmModal';
Expand All @@ -13,6 +13,7 @@ import RequireTwoFactorAuthenticationModal from './components/RequireTwoFactorAu
import AppleAuthWrapper from './components/SignInButtons/AppleAuthWrapper';
import SplashScreenHider from './components/SplashScreenHider';
import UpdateAppModal from './components/UpdateAppModal';
import * as CONFIG from './CONFIG';
import CONST from './CONST';
import useLocalize from './hooks/useLocalize';
import * as EmojiPickerAction from './libs/actions/EmojiPickerAction';
Expand Down Expand Up @@ -169,6 +170,11 @@ function Expensify({
return unsubscribeNetInfo;
}, []);

// Log the platform and config to debug .env issues
useEffect(() => {
Log.info('App launched', false, {Platform, CONFIG});
}, []);

useEffect(() => {
setTimeout(() => {
BootSplash.getVisibilityStatus().then((status) => {
Expand Down

0 comments on commit 6b2591c

Please sign in to comment.