Skip to content

Commit

Permalink
add endpoint to repl log
Browse files Browse the repository at this point in the history
  • Loading branch information
velicuvlad committed Oct 22, 2024
1 parent 274f65f commit 5b7485c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Replicator/Replicator.hh
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ namespace litecore::repl {
// exposed for unit tests:
websocket::WebSocket* webSocket() const { return connection().webSocket(); }

slice remoteURL() const { return _remoteURL; }

C4Collection* collection(CollectionIndex i) const {
Assert(i < _subRepls.size());
return _subRepls[i].collection;
Expand Down
4 changes: 2 additions & 2 deletions Replicator/c4ReplicatorImpl.hh
Original file line number Diff line number Diff line change
Expand Up @@ -290,8 +290,8 @@ namespace litecore {
}

setStatusFlag(kC4Suspended, false);
logInfo("Starting Replicator %s with config: {%s}\n", _replicator->loggingName().c_str(),
std::string(*_options).c_str());
logInfo("Starting Replicator %s with config: {%s} and endpoint: %.*s", _replicator->loggingName().c_str(),
std::string(*_options).c_str(), SPLAT(_replicator->remoteURL()));
_selfRetain = this; // keep myself alive till Replicator stops
updateStatusFromReplicator(_replicator->status());
_responseHeaders = nullptr;
Expand Down

0 comments on commit 5b7485c

Please sign in to comment.