added logger trace level and set it to write all bytes

This commit is contained in:
amit b 2018-10-19 08:13:16 +03:00
parent e03c85f7ab
commit f57b698430
2 changed files with 8 additions and 1 deletions

View File

@ -151,6 +151,13 @@ func Debugf(format string, v ...interface{}) {
simpleLogger.Debugf(format, v...)
}
func Trace(v ...interface{}) {
simpleLogger.Trace(v...)
}
func Tracef(format string, v ...interface{}) {
simpleLogger.Tracef(format, v...)
}
func Info(v ...interface{}) {
simpleLogger.Info(v...)
}

View File

@ -13,7 +13,7 @@ type ClientUpdater struct {
// Consume recieves vnc-server-bound messages (Client messages) and updates the server part of the proxy
func (cc *ClientUpdater) Consume(seg *common.RfbSegment) error {
//logger.Debugf("ClientUpdater.Consume (vnc-server-bound): got segment type=%s bytes: %v", seg.SegmentType, seg.Bytes)
logger.Tracef("ClientUpdater.Consume (vnc-server-bound): got segment type=%s bytes: %v", seg.SegmentType, seg.Bytes)
switch seg.SegmentType {
case common.SegmentFullyParsedClientMessage: