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 0214d1b commit a7bb8db
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 @@ -7,7 +7,7 @@ import type { API, DynamicPlatformPlugin, HAP, Logging, PlatformAccessory } from
import type { DevicesConfig, RainbirdPlatformConfig } from './settings.js'

import { readFileSync } from 'node:fs'
import process from 'node:process'
import { argv } from 'node:process'

import { LogLevel, RainBirdService } from 'rainbird'

Expand Down Expand Up @@ -728,7 +728,7 @@ export class RainbirdPlatform implements DynamicPlatformPlugin {
}

async platformLogs() {
this.debugMode = process.argv.includes('-D') || process.argv.includes('--debug')
this.debugMode = argv.includes('-D') || argv.includes('--debug')
this.platformLogging = this.config.options?.logging ?? 'standard'
if (this.config.options?.logging === 'debug' || this.config.options?.logging === 'standard' || this.config.options?.logging === 'none') {
this.platformLogging = this.config.options.logging
Expand Down

0 comments on commit a7bb8db

Please sign in to comment.