[SERVER-23986] Issue a single warning on 'the eval command is deprecated' instead of the same warning for each connection Created: 29/Apr/16 Updated: 16/Jun/16 Resolved: 16/Jun/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin, Diagnostics |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Minor - P4 |
| Reporter: | Marco Bonezzi | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Participants: | |||||
| Description |
|
The eval command is deprecated and a warning message is shown per connection. As the mongo shell shows the warnings from the startup log, when opening a mongo shell it will show the same repeated warning message for each connection, taking all the window space:
It might be useful to have just a single warning when using eval instead of one per connection just repeating the message. |
| Comments |
| Comment by Ramon Fernandez Marina [ 16/Jun/16 ] |
|
It is unclear at this time how to address this ticket and still allow multiple clients to be tracked, so without any further information or suggestions I'm going to close this ticket for now. If a good proposal is made we can always reopen the ticket and discuss such proposal. Regards, |
| Comment by Ramon Fernandez Marina [ 29/Apr/16 ] |
|
A warning per connection seems useful, as it informs there are multiple clients using a deprecated feature. If these warnings are consolidated somehow it may make it harder to track down all clients using eval, so I think further discussion is needed. If the impact is only use of screen space then perhaps the --quiet option for the mongo shell can be considered. |