Skip to content

Commit

Permalink
Merge pull request #133 from ecmwf/feat/codelocation-format-enable-jump
Browse files Browse the repository at this point in the history
looks good to me
thanks @pmaciel and @mcakircali
  • Loading branch information
danovaro authored Jul 5, 2024
2 parents b21f2b9 + 563bb08 commit 8d230b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/eckit/log/CodeLocation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ CodeLocation::operator bool() const {

void CodeLocation::print(std::ostream& os) const {
if (file_) {
os << " (" << file_ << " +" << line_;
if (func_ && ::strlen(func_)) {
os << " (" << file_ << ":" << line_;
if (func_ && ::strlen(func_) > 0) {
os << " " << func_;
}
os << ")";
Expand Down

0 comments on commit 8d230b1

Please sign in to comment.