summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-05-26 00:32:39 -0400
committerEliot Horowitz <eliot@10gen.com>2010-05-26 00:32:39 -0400
commit39f1354781b48ab08fe2cd2ee9a7997baf09589f (patch)
treedc59925a47f5d72055f116fdd13b066b1a86e3cf /scripting
parent9f3c0fcf093d04ca6a378f048cac44e37522311c (diff)
downloadmongo-39f1354781b48ab08fe2cd2ee9a7997baf09589f.tar.gz
cout is bad
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine_spidermonkey.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp
index 1099aadb44e..a5e495f0b31 100644
--- a/scripting/engine_spidermonkey.cpp
+++ b/scripting/engine_spidermonkey.cpp
@@ -470,7 +470,7 @@ namespace mongo {
JSFunction * func = JS_CompileFunction( _context , assoc , fname.str().c_str() , params.size() , paramArray.get() , code.c_str() , strlen( code.c_str() ) , "nofile_b" , 0 );
if ( ! func ){
- cout << "compile failed for: " << raw << endl;
+ log() << "compile failed for: " << raw << endl;
return 0;
}
gcName = "cf normal";
@@ -503,10 +503,10 @@ namespace mongo {
free( dst );
if ( ! res ){
- cout << "decode failed. probably invalid utf-8 string [" << c << "]" << endl;
+ log() << "decode failed. probably invalid utf-8 string [" << c << "]" << endl;
jsval v;
if ( JS_GetPendingException( _context , &v ) )
- cout << "\t why: " << toString( v ) << endl;
+ log() << "\t why: " << toString( v ) << endl;
throw InvalidUTF8Exception();
}
@@ -669,7 +669,7 @@ namespace mongo {
}
}
- cout << "toval: unknown type: " << e.type() << endl;
+ log() << "toval: unknown type: " << (int)(e.type()) << endl;
uassert( 10218 , "not done: toval" , 0 );
return 0;
}