[COMPASS-4974] Embedded mongosh log in Compass does not populate like standalone mongosh Created: 28/Jul/21  Updated: 27/Oct/23  Resolved: 17/Dec/21

Status: Closed
Project: Compass
Component/s: Compass, Embedded Shell
Affects Version/s: 1.28.1
Fix Version/s: No version

Type: Story Priority: Major - P3
Reporter: Felicia Hsieh Assignee: Unassigned
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

MacOS 10.14.6


Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

What is going wrong?

No log lines recorded in ~/.mongodb/mongosh/mongosh_repl_history when using embedded mongosh in Compass

 

Compass itself does not have a log. Since standalone mongosh has a logging function, it would be useful. Also, commands from Compass' embedded mongosh need to be differentiated from standalone mongosh (unless the commands will go into a completely separate file).

Steps to Reproduce

How could an engineer replicate the issue you’re reporting?

Open Compass and connect to a database.

Open embedded mongosh

type "show dbs" and any commands

Expected Results

What do you expect to happen?

See user-entered commands in the mongosh_repl_history file, preferably with a timestamp.

Actual Results

What do you observe is happening?

File is unchanged (blank with 0 bytes).

Additional Notes

Any additional information that may be useful to include.

Please also check on Compass Windows platform also. Log file is in a different directory.

Is the .mongodb/mongosh/config file option for useTelemetry working? Does telemetry include log data? Either true|false, nothing is logged in 
mongosh_repl_history.


Generated at Wed Feb 07 22:38:00 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.