Skip to content

Commit

Permalink
Merge pull request #206 from polycube-network/frisso-addcomment-1
Browse files Browse the repository at this point in the history
Add comment in the code.
  • Loading branch information
frisso authored Aug 23, 2019
2 parents 26efcd0 + ee90d0d commit ac2e21d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/polycubed/src/cube_tc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@ void CubeTC::send_packet_ns_span_mode(void *cb_cookie, void *data, int data_size

} catch(const std::exception &e) {
// TODO: ignore the problem, what else can we do?

// This function (i.e., send_packet_ns_span_mode() ) is static, so we cannot use
// standard logging primitive (i.e., logger->warn() ) here.
spdlog::get("polycubed")->warn("Error processing packet in span mode - event: {}", e.what());
}
}
Expand Down

0 comments on commit ac2e21d

Please sign in to comment.