Well installing centos 7.6 on a VM was interesting. WeeWX 3.9.1 was 
installed from .rpm. It seems that when run under centos7.6 WeeWX (and 
python) any attempts to log at the debug level are discarded or otherwise 
lost. With debug=1:

[root@VBCentosMaster ~]# cat /etc/weewx/weewx.conf|more
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2019 Tom Keffer <tkef...@gmail.com>
# See the file LICENSE.txt for your rights.

##############################################################################

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero
debug = 1

# Root directory of the weewx data file hierarchy for this station
WEEWX_ROOT = /

# Whether to log successful operations
log_success = True

# Whether to log unsuccessful operations
log_failure = True

# How long to wait before timing out a socket (FTP, HTTP) connection
socket_timeout = 20

# Do not modify this. It is used when installing and updating weewx.
version = 3.9.1


starting WeeWX gives:

Jun 16 00:06:28 localhost systemd: Starting SYSV: start and stop the weewx 
weather system...
Jun 16 00:06:28 localhost weewx[7392]: engine: Initializing weewx version 
3.9.1
Jun 16 00:06:28 localhost weewx[7392]: engine: Using Python 2.7.5 (default, 
Apr  9 2019, 14:30:50) #012[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
Jun 16 00:06:28 localhost weewx[7392]: engine: Platform Linux-3.10.0-
957.el7.x86_64-x86_64-with-centos-7.6.1810-Core
Jun 16 00:06:28 localhost weewx[7392]: engine: Locale is 'en_AU.UTF-8'
Jun 16 00:06:28 localhost weewx[7392]: engine: pid file is /var/run/weewx.
pid
Jun 16 00:06:28 localhost weewx: Starting weewx: [  OK  ]
Jun 16 00:06:28 localhost systemd: Started SYSV: start and stop the weewx 
weather system.
Jun 16 00:06:28 localhost weewx[7397]: engine: Using configuration file /etc
/weewx/weewx.conf
Jun 16 00:06:28 localhost weewx[7397]: engine: Loading station type 
Simulator (weewx.drivers.simulator)
Jun 16 00:06:28 localhost weewx[7397]: engine: StdConvert target unit is 0x1
Jun 16 00:06:28 localhost weewx[7397]: wxcalculate: The following values 
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, 
windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=
prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
Jun 16 00:06:28 localhost weewx[7397]: wxcalculate: The following 
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jun 16 00:06:28 localhost weewx[7397]: engine: Archive will use data 
binding wx_binding
Jun 16 00:06:28 localhost weewx[7397]: engine: Record generation will be 
attempted in 'hardware'
Jun 16 00:06:28 localhost weewx[7397]: engine: Using archive interval of 300 
seconds (specified in weewx configuration)
Jun 16 00:06:28 localhost weewx[7397]: engine: Using binding 'wx_binding' 
to database 'weewx.sdb'
Jun 16 00:06:28 localhost weewx[7397]: manager: Starting backfill of daily 
summaries
Jun 16 00:06:28 localhost weewx[7397]: restx: StationRegistry: Registration 
not requested.
Jun 16 00:06:28 localhost weewx[7397]: restx: Wunderground: Posting not 
enabled.
Jun 16 00:06:28 localhost weewx[7397]: restx: PWSweather: Posting not 
enabled.
Jun 16 00:06:28 localhost weewx[7397]: restx: CWOP: Posting not enabled.
Jun 16 00:06:28 localhost weewx[7397]: restx: WOW: Posting not enabled.
Jun 16 00:06:28 localhost weewx[7397]: restx: AWEKAS: Posting not enabled.
Jun 16 00:06:28 localhost weewx[7397]: engine: Starting up weewx version 3.9
.1
Jun 16 00:06:28 localhost weewx[7397]: engine: Clock error is -0.02 seconds 
(positive is fast)
Jun 16 00:06:28 localhost weewx[7397]: engine: Starting main packet loop.

WeeWX appears to otherwise run properly it just cannot log at the debug 
level. Opening a python console importing syslog and doing a few syslog 
calls produced the same result, anything at LOG_DEBUG was ignored.

Not sure where the issue lies, probably needs someone with a better 
understanding of rsyslog than me. Makes me wonder if given centos' 
parentage whether RH will be the same. Enough for me, I hurt my brain 
enough battling with centos, will be glad to get back to debian.

Gary

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/048923b3-9094-4717-8a07-c9d1552e4372%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to