option port '' # 5000
option udp_port_base '' # 6001
option udp_port_range '' # 100
- option statistics '' # no/yes
+ option statistics '' # no/yes - DEPRECATED: This option will be removed in a future release. Use 'diagnostics_statistics' instead
option drift '' # 88
option resync_threshold '' # 2205
- option log_verbosity '' # 0/1/2/3
+ option log_verbosity '' # 0/1/2/3 - DEPRECATED: This option will be removed in a future release. Use 'diagnostics_log_verbosity' instead
option ignore_volume_control '' # no/yes
option volume_range_db '' # 30 to 150
option regtype '' # _raop._tcp
# AO
option ao_latency_offset '' # 0
option ao_buffer_length '' # 44100
+ # Diagnostics
+ option diagnostics_statistics '' # no/yes
+ option diagnostics_log_output_to '' # syslog/stderr/stdout
+ option diagnostics_log_verbosity '' # 0/1/2/3
append_num "$cfg" port "port"
append_num "$cfg" udp_port_base "udp_port_base"
append_num "$cfg" udp_port_range "udp_port_range"
- append_str "$cfg" statistics "statistics"
append_num "$cfg" drift "drift"
append_num "$cfg" resync_threshold "resync_threshold"
- append_num "$cfg" log_verbosity "log_verbosity"
append_str "$cfg" ignore_volume_control "ignore_volume_control"
append_num "$cfg" volume_range_db "volume_range_db"
append_str "$cfg" regtype "regtype"
append_num "$cfg" ao_latency_offset "audio_backend_latency_offset"
append_num "$cfg" ao_buffer_length "audio_backend_buffer_desired_length"
printf "};\n\n"
+
+ # Diagnostics
+ config_get log_verbosity "$cfg" log_verbosity
+ config_get statistics "$cfg" statistics
+
+ printf "diagnostics =\n"
+ printf "{\n"
+ append_str "$cfg" diagnostics_statistics "statistics" "${statistics}"
+ append_str "$cfg" diagnostics_log_output_to "log_output_to"
+ append_num "$cfg" diagnostics_log_verbosity "log_verbosity" "${log_verbosity}"
+ printf "};\n\n"
} > "$conf_file"
procd_open_instance