Skip to content

Commit

Permalink
Log file errors in client requests
Browse files Browse the repository at this point in the history
  • Loading branch information
drolbr committed Oct 28, 2022
1 parent f1f3f7d commit 56f7e66
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/overpass_api/dispatch/web_query.cc
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ int main(int argc, char *argv[])
temp<<"The dispatcher (i.e. the database management system) is turned off.";
}
else
{
temp<<"open64: "<<e.error_number<<' '<<strerror(e.error_number)<<' '<<e.filename<<' '<<e.origin;
if (!db_dir.empty())
Logger(db_dir).annotated_log(temp.str());
}
error_output.runtime_error(temp.str());
}
catch(Resource_Error e)
Expand Down

0 comments on commit 56f7e66

Please sign in to comment.