some log cleaning

This commit is contained in:
Eliot Horowitz
2010-07-25 11:51:34 -04:00
parent 672a947cf5
commit 4e4a4959a8
3 changed files with 10 additions and 8 deletions

View File

@@ -96,7 +96,7 @@ namespace mongo {
path p( filename );
if ( ! exists( p ) ){
cout << "file [" << filename << "] doesn't exist" << endl;
log() << "file [" << filename << "] doesn't exist" << endl;
if ( assertOnError )
assert( 0 );
return false;
@@ -116,7 +116,7 @@ namespace mongo {
}
if (empty){
cout << "directory [" << filename << "] doesn't have any *.js files" << endl;
log() << "directory [" << filename << "] doesn't have any *.js files" << endl;
if ( assertOnError )
assert( 0 );
return false;