Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions packages/cli-repl/src/cli-repl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class CliRepl {
* @param {NodeOptions} driverOptions - The driver options.
*/
async connect(driverUri: string, driverOptions: NodeOptions): Promise<any> {
console.log(i18n.__(CONNECTING), clr(redactPwd(driverUri), ['bold', 'green']));
console.log(i18n.__(CONNECTING), ' ', clr(redactPwd(driverUri), ['bold', 'green']));
return await CliServiceProvider.connect(driverUri, driverOptions);
}

Expand Down Expand Up @@ -336,7 +336,9 @@ class CliRepl {
* The greeting for the shell.
*/
greet(): void {
console.log(`Using MongoDB: ${this.buildInfo.version}`);
const { version } = require('../package.json');
console.log(`Using MongoDB: ${this.buildInfo.version}`);
console.log(`${clr('Using Mongosh Beta', ['bold', 'yellow'])}: ${version}`)
console.log(`${MONGOSH_WIKI}`);
if (!this.disableGreetingMessage) console.log(TELEMETRY);
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cli-repl/src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function logger(bus: any, logDir: string): void {
const session_id = new ObjectId(Date.now()).toString();
const logDest = path.join(logDir, `${session_id}_log`);
const log = pino({ name: 'monogsh' }, pino.destination(logDest));
console.log(`Current sessionID: ${session_id}`);
console.log(`Current sessionID: ${session_id}`);
let userId;
let telemetry;

Expand Down