azureblob: disable logging to the Windows event log
See: https://forum.rclone.org/t/event-log-warning/12430
This commit is contained in:
parent
2e50543053
commit
2d9b8cb981
1 changed files with 3 additions and 0 deletions
|
@ -312,6 +312,9 @@ func httpClientFactory(client *http.Client) pipeline.Factory {
|
||||||
//
|
//
|
||||||
// this code was copied from azblob.NewPipeline
|
// this code was copied from azblob.NewPipeline
|
||||||
func (f *Fs) newPipeline(c azblob.Credential, o azblob.PipelineOptions) pipeline.Pipeline {
|
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
|
// Closest to API goes first; closest to the wire goes last
|
||||||
factories := []pipeline.Factory{
|
factories := []pipeline.Factory{
|
||||||
azblob.NewTelemetryPolicyFactory(o.Telemetry),
|
azblob.NewTelemetryPolicyFactory(o.Telemetry),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue