mirror of
https://github.com/amitbet/vncproxy.git
synced 2025-04-27 10:50:47 +00:00
added logger trace level and set it to write all bytes
This commit is contained in:
parent
e03c85f7ab
commit
f57b698430
@ -151,6 +151,13 @@ func Debugf(format string, v ...interface{}) {
|
|||||||
simpleLogger.Debugf(format, v...)
|
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{}) {
|
func Info(v ...interface{}) {
|
||||||
simpleLogger.Info(v...)
|
simpleLogger.Info(v...)
|
||||||
}
|
}
|
||||||
|
@ -13,7 +13,7 @@ type ClientUpdater struct {
|
|||||||
|
|
||||||
// Consume recieves vnc-server-bound messages (Client messages) and updates the server part of the proxy
|
// Consume recieves vnc-server-bound messages (Client messages) and updates the server part of the proxy
|
||||||
func (cc *ClientUpdater) Consume(seg *common.RfbSegment) error {
|
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 {
|
switch seg.SegmentType {
|
||||||
|
|
||||||
case common.SegmentFullyParsedClientMessage:
|
case common.SegmentFullyParsedClientMessage:
|
||||||
|
Loading…
Reference in New Issue
Block a user