mirror of
https://github.com/tailscale/tailscale.git
synced 2024-11-26 03:25:35 +00:00
f371a1afd9
Initialize logtail and provide an uploader that works in the browser (we make a no-cors cross-origin request to avoid having to open up the logcatcher servers to CORS). Fixes #5147 Signed-off-by: Mihai Parparita <mihai@tailscale.com>
23 lines
387 B
Go
23 lines
387 B
Go
// Copyright (c) 2022 Tailscale Inc & AUTHORS All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package filch
|
|
|
|
import (
|
|
"os"
|
|
)
|
|
|
|
func saveStderr() (*os.File, error) {
|
|
return os.Stderr, nil
|
|
}
|
|
|
|
func unsaveStderr(f *os.File) error {
|
|
os.Stderr = f
|
|
return nil
|
|
}
|
|
|
|
func dup2Stderr(f *os.File) error {
|
|
return nil
|
|
}
|