Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
We no longer need to be able to define log file wrappers.
Loading branch information
Showing
1 changed file
with
0 additions
and
13 deletions .
+0
−13
pt.go
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -171,19 +171,6 @@ func (w syncWriter) Write(p []byte) (n int, err error) {
// Writer to which pluggable transports negotiation messages are written. It
// defaults to a Writer that writes to os.Stdout and calls Sync after each
// write.
//
// You may, for example, log pluggable transports messages by defining a Writer
// that logs what is written to it:
// type logWriteWrapper struct {
// io.Writer
// }
//
// func (w logWriteWrapper) Write(p []byte) (int, error) {
// log.Print(string(p))
// return w.Writer.Write(p)
// }
// and then redefining Stdout:
// pt.Stdout = logWriteWrapper{pt.Stdout}
var Stdout io.Writer = syncWriter {os .Stdout }
// Represents an error that can happen during negotiation, for example
Toggle all file notes
Toggle all file annotations