mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
nativenet: change some error messages to debug messages
This commit is contained in:
parent
f295b28369
commit
446c01c796
@ -136,7 +136,10 @@ private:
|
||||
* used to do a full reset of buffers
|
||||
*/
|
||||
inline void Buffered_DatagramConnection::ClearAll(void) {
|
||||
nativenet_cat.error() << "Buffered_DatagramConnection::ClearAll Starting Auto Reset\n";
|
||||
if (nativenet_cat.is_debug()) {
|
||||
nativenet_cat.debug()
|
||||
<< "Buffered_DatagramConnection::ClearAll Starting Auto Reset\n";
|
||||
}
|
||||
Close();
|
||||
_Writer.ReSet();
|
||||
_Reader.ReSet();
|
||||
@ -215,8 +218,11 @@ inline Buffered_DatagramConnection::~Buffered_DatagramConnection(void)
|
||||
inline Buffered_DatagramConnection::Buffered_DatagramConnection(int rbufsize, int wbufsize, int write_flush_point)
|
||||
: _Writer(wbufsize,write_flush_point) , _Reader(rbufsize)
|
||||
{
|
||||
nativenet_cat.error() << "Buffered_DatagramConnection Constructor rbufsize = " << rbufsize
|
||||
<< " wbufsize = " << wbufsize << " write_flush_point = " << write_flush_point << "\n";
|
||||
if (nativenet_cat.is_debug()) {
|
||||
nativenet_cat.debug()
|
||||
<< "Buffered_DatagramConnection Constructor rbufsize = " << rbufsize
|
||||
<< " wbufsize = " << wbufsize << " write_flush_point = " << write_flush_point << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
inline bool Buffered_DatagramConnection::SendMessageBufferOnly(Datagram &msg)
|
||||
@ -289,7 +295,9 @@ bool Buffered_DatagramConnection::Flush(void)
|
||||
* Reset
|
||||
*/
|
||||
inline void Buffered_DatagramConnection::Reset() {
|
||||
nativenet_cat.error() << "Buffered_DatagramConnection::Reset()\n";
|
||||
if (nativenet_cat.is_debug()) {
|
||||
nativenet_cat.debug() << "Buffered_DatagramConnection::Reset()\n";
|
||||
}
|
||||
ClearAll();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user