weareinreach / InReach

Avoid using console in code that runs on browser JS-0002
Bug risk
Major
3 occurrences in this check
Avoid using console in code that runs on the browser
 29}
 30
 31const reducer = (state: State, action: Action): State => {
 32	console.log(state, action) 33	switch (action.type) {
 34		case 'SET_PARAMS':
 35			return { ...state, searchState: { ...state.searchState, params: action.payload } }
Avoid using console in code that runs on the browser
14console.log('Initializing OpenTelemetry...')
15
16if (otelTraceOptions) {
17	console.log(`Using custom server: ${otelTraceOptions.url}`)18}
19const sdk = new NodeSDK({
20	resource: new Resource({
Avoid using console in code that runs on the browser
11
12config({ path: '../../.env' })
13const otelTraceOptions = process.env.OTEL_SERVER ? { url: process.env.OTEL_SERVER } : undefined
14console.log('Initializing OpenTelemetry...')15
16if (otelTraceOptions) {
17	console.log(`Using custom server: ${otelTraceOptions.url}`)