summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
Diffstat (limited to 'scripting')
-rw-r--r--scripting/engine_spidermonkey.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/engine_spidermonkey.cpp b/scripting/engine_spidermonkey.cpp
index 110cd37be44..408679cd19b 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 ){
- tlog() << "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 ) )
- tlog() << "\t why: " << toString( v ) << endl;
+ log() << "\t why: " << toString( v ) << endl;
throw InvalidUTF8Exception();
}