From ff34ec6348c5cd2fa3a40c685fc2037335925806 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 3 Feb 2010 12:44:50 -0500 Subject: put diaglog in dbpath rather than cwd --- db/instance.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'db/instance.h') diff --git a/db/instance.h b/db/instance.h index 0260e06d171..2aa2e86a516 100644 --- a/db/instance.h +++ b/db/instance.h @@ -45,7 +45,7 @@ namespace mongo { if ( ! f && level ){ log() << "diagLogging = " << level << endl; stringstream ss; - ss << "diaglog." << hex << time(0); + ss << dbpath << "/diaglog." << hex << time(0); string name = ss.str(); f = new ofstream(name.c_str(), ios::out | ios::binary); if ( ! f->good() ) { -- cgit v1.2.1