Remove unused daemon.LogToDisk function
Fixes #11937 Signed-off-by: Abhishek Chanda <abhishek.becs@gmail.com>
This commit is contained in:
parent
fe9f3227b1
commit
1d23bae785
1 changed files with 0 additions and 9 deletions
|
@ -320,15 +320,6 @@ func (daemon *Daemon) ensureName(container *Container) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (daemon *Daemon) LogToDisk(src *broadcastwriter.BroadcastWriter, dst, stream string) error {
|
||||
log, err := os.OpenFile(dst, os.O_RDWR|os.O_APPEND|os.O_CREATE, 0600)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
src.AddWriter(log, stream)
|
||||
return nil
|
||||
}
|
||||
|
||||
func (daemon *Daemon) restore() error {
|
||||
var (
|
||||
debug = (os.Getenv("DEBUG") != "" || os.Getenv("TEST") != "")
|
||||
|
|
Loading…
Add table
Reference in a new issue