File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
lib/mongo/collection/view Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,9 @@ def send_initial_query(server)
110
110
begin
111
111
initial_query_op . execute ( server . context )
112
112
rescue Mongo ::Error ::NeedPrimaryServer
113
- warn 'Rerouting the Aggregation operation to the primary server.'
113
+ log_warn ( [
114
+ 'Rerouting the Aggregation operation to the primary server.'
115
+ ] )
114
116
server = ServerSelector . get ( mode : :primary ) . select_server ( cluster )
115
117
initial_query_op . execute ( server . context )
116
118
end
Original file line number Diff line number Diff line change @@ -177,7 +177,9 @@ def send_initial_query(server)
177
177
begin
178
178
initial_query_op . execute ( server . context )
179
179
rescue Mongo ::Error ::NeedPrimaryServer
180
- warn 'Rerouting the MapReduce operation to the primary server.'
180
+ log_warn ( [
181
+ 'Rerouting the MapReduce operation to the primary server.'
182
+ ] )
181
183
server = ServerSelector . get ( mode : :primary ) . select_server ( cluster )
182
184
initial_query_op . execute ( server . context )
183
185
end
You can’t perform that action at this time.
0 commit comments