Skip to content

Commit

Permalink
fixes #266 (#269)
Browse files Browse the repository at this point in the history
  • Loading branch information
nstoik committed Oct 25, 2022
1 parent 59bd329 commit 41efe22
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .env.example
Expand Up @@ -23,9 +23,9 @@ FD_1WIRE=$FD_TAG
# variables for FD_DEVICE
FD_DEVICE_CONFIG=$FD_GENERAL_CONFIG
RABBITMQ_HOST_ADDRESS=10.10.1.204
# optionally override the logging level
# set the logging level
# Options can be one of: DEBUG, INFO, WARNING, ERROR, CRITICAL
# FD_DEVICE_LOG_LEVEL=INFO
FD_DEVICE_LOG_LEVEL=INFO

# variables for FD_1WIRE
FD_1WIRE_PORT=2121
Expand Down
6 changes: 3 additions & 3 deletions device/fd_device/settings.py
Expand Up @@ -19,7 +19,7 @@ class Config:

PRESENCE_PORT = 5554

LOG_LEVEL = env.log_level("FD_LOG_LEVEL", default=logging.INFO)
LOG_LEVEL = env.log_level("FD_DEVICE_LOG_LEVEL", default=logging.INFO)
LOG_FILE = "/logs/farm_device.log"

# UPDATER_PATH = "/home/pi/farm_monitor/farm_update/update.sh"
Expand Down Expand Up @@ -49,14 +49,14 @@ class DevConfig(Config):
"""Development configuration."""

DEBUG = True
LOG_LEVEL = env.log_level("FD_LOG_LEVEL", default=logging.DEBUG)
LOG_LEVEL = env.log_level("FD_DEVICE_LOG_LEVEL", default=logging.DEBUG)


class ProdConfig(Config):
"""Production configuration."""

DEBUG = False
LOG_LEVEL = env.log_level("FD_LOG_LEVEL", default=logging.INFO)
LOG_LEVEL = env.log_level("FD_DEVICE_LOG_LEVEL", default=logging.INFO)


class TestConfig(Config):
Expand Down

0 comments on commit 41efe22

Please sign in to comment.