azureblob: disable logging to the Windows event log

See: https://forum.rclone.org/t/event-log-warning/12430
This commit is contained in:
Nick Craig-Wood 2019-10-20 16:38:37 +01:00
parent 2e50543053
commit 2d9b8cb981

View File

@ -312,6 +312,9 @@ func httpClientFactory(client *http.Client) pipeline.Factory {
//
// this code was copied from azblob.NewPipeline
func (f *Fs) newPipeline(c azblob.Credential, o azblob.PipelineOptions) pipeline.Pipeline {
// Don't log stuff to syslog/Windows Event log
pipeline.SetForceLogEnabled(false)
// Closest to API goes first; closest to the wire goes last
factories := []pipeline.Factory{
azblob.NewTelemetryPolicyFactory(o.Telemetry),