File tree Expand file tree Collapse file tree 3 files changed +24
-1
lines changed
Expand file tree Collapse file tree 3 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -18,13 +18,17 @@ import type { BrowserViewName } from './reducers/electron';
1818import getRandomUserAgent from './utils/randomUserAgent' ;
1919import electronObjects from './store/electronObjects' ;
2020import resizeViews from './utils/resizeViews' ;
21+ import { version , osData } from './utils/info' ;
22+
23+ logger . info ( `Running version ${ version } ` ) ;
24+ logger . info ( `Running on:` , osData ) ;
2125
2226const isProduction = process . env . NODE_ENV === 'production' ;
2327const isDevelopment = process . env . NODE_ENV === 'development' ;
2428const enableDebug = process . env . ENABLE_DEBUG === 'true' ;
2529const enableDevtools = isDevelopment || enableDebug ;
2630logger . info (
27- `ENVIRONMENT prod:${ isProduction } dev:${ isDevelopment } debug:${ enableDebug } tools:${ enableDevtools } `
31+ `ENV prod:${ isProduction } dev:${ isDevelopment } debug:${ enableDebug } tools:${ enableDevtools } `
2832) ;
2933
3034let isLaunching = true ;
Original file line number Diff line number Diff line change 55 RESET_CACHE ,
66 SET_CACHE
77} from '../constants/actionTypes' ;
8+ import { logger } from '../utils/tracer-logger.js' ;
89
910export type BaseCacheEntry = {
1011 timestamp : number ;
@@ -38,6 +39,9 @@ export default function cache(
3839 action : Action
3940) : cacheStateType {
4041 if ( action . type === MARK_COMPLETED ) {
42+ logger . info (
43+ `Mark application for flat ${ flatId } as completed. [success=${ data . success } ]`
44+ ) ;
4145 const { name, identifier, data } = action . payload ;
4246 return dotProp . set ( state , `${ name } .${ identifier } ` , {
4347 ...data ,
Original file line number Diff line number Diff line change 1+ import os from 'node:os' ;
2+ import { version as v } from '../../package.json' ;
3+
4+ export const version = v ;
5+
6+ export const osData = {
7+ platform : os . platform ( ) ,
8+ release : os . release ( ) ,
9+ machine : os . machine ( ) ,
10+ architecture : os . arch ( ) ,
11+ version : os . version ( ) ,
12+ memory : os . totalmem ( ) ,
13+ freeMemory : os . freemem ( ) ,
14+ cpus : os . cpus ( ) . length
15+ } ;
You can’t perform that action at this time.
0 commit comments