Permalink
Browse files

Add stack traces to _data_handle_remove() failures.

  • Loading branch information...
1 parent 9bcbb90 commit b17a3d894fa6f11deef4e7187e87fd5061058cb9 @rcaputo committed Jul 27, 2011
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/POE/Resource/FileHandles.pm
@@ -481,7 +481,7 @@ sub _data_handle_remove {
TRACE_FILES and
_warn(
"<fh> removing handle ($handle) fileno ($fd) mode ($mode) from " .
- Carp::shortmess
+ $self->_data_alias_loggable($sid) . Carp::shortmess()
);
# Remove the handle from the kernel's session record.
@@ -563,7 +563,9 @@ sub _data_handle_remove {
}
elsif (TRACE_FILES) {
_warn(
- "<fh> handle ($handle) fileno ($fd) is not registered with POE::Kernel"
+ "<fh> handle ($handle) fileno ($fd) is not registered with POE::Kernel" .
+ Carp::shortmess()
+
);
}

0 comments on commit b17a3d8

Please sign in to comment.