diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-03 12:44:50 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-03 12:44:50 -0500 |
commit | ff34ec6348c5cd2fa3a40c685fc2037335925806 (patch) | |
tree | 6f032df7978c8fd86152092c5ec2b9d20cf33284 /db/instance.h | |
parent | 1439431b7ef07d4c21dfb1585841e037502b0345 (diff) | |
download | mongo-ff34ec6348c5cd2fa3a40c685fc2037335925806.tar.gz |
put diaglog in dbpath rather than cwd
Diffstat (limited to 'db/instance.h')
-rw-r--r-- | db/instance.h | 2 |
1 files changed, 1 insertions, 1 deletions
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() ) { |