Skip to content

Commit

Permalink
Update platform.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
donavanbecker committed Oct 31, 2024
1 parent eca5c8f commit 1c0d516
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import type {
} from './settings.js'

import { readFileSync, writeFileSync } from 'node:fs'
import process from 'node:process'
import { argv } from 'node:process'
import { stringify } from 'node:querystring'

import axios from 'axios'
Expand Down Expand Up @@ -786,7 +786,7 @@ export class ResideoPlatform implements DynamicPlatformPlugin {
}

async getPlatformLogSettings() {
this.debugMode = process.argv.includes('-D') ?? process.argv.includes('--debug')
this.debugMode = argv.includes('-D') ?? argv.includes('--debug')
if (this.config.options?.logging === 'debug' || this.config.options?.logging === 'standard' || this.config.options?.logging === 'none') {
this.platformLogging = this.config.options.logging
await this.debugWarnLog(`Using Config Logging: ${this.platformLogging}`)
Expand Down

0 comments on commit 1c0d516

Please sign in to comment.