Skip to content

Commit

Permalink
Add stack traces to _data_handle_remove() failures.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcaputo committed Jul 27, 2011
1 parent f0eff5d commit 18a75c2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/POE/Resource/FileHandles.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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()

);
}

Expand Down

0 comments on commit 18a75c2

Please sign in to comment.