Trim excessive logs
This commit is contained in:
		
							
								
								
									
										11
									
								
								api.js
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								api.js
									
									
									
									
									
								
							@@ -21,6 +21,15 @@ var BotanJS = function()
 | 
			
		||||
 | 
			
		||||
util.inherits( BotanJS, events.EventEmitter );
 | 
			
		||||
 | 
			
		||||
var _trim = function( s )
 | 
			
		||||
{
 | 
			
		||||
	if( 100 < s.length )
 | 
			
		||||
	{
 | 
			
		||||
		return "[BLOB: " + s.substr( 0, 20 ) + " ...]";
 | 
			
		||||
	}
 | 
			
		||||
	return s;
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
BotanJS.prototype.unshift = function()
 | 
			
		||||
{
 | 
			
		||||
	for( var i in arguments )
 | 
			
		||||
@@ -107,7 +116,7 @@ BotanJS.prototype.compile = function( type )
 | 
			
		||||
				{
 | 
			
		||||
					_self.storeForRender( rainet, type, ch );
 | 
			
		||||
 | 
			
		||||
					Dragonfly.Debug( "Storing " + ch + " to fastcache[ " + fastCache.id + " ]" );
 | 
			
		||||
					Dragonfly.Debug( "Storing " + _trim( ch ) + " to fastcache[ " + fastCache.id + " ]" );
 | 
			
		||||
 | 
			
		||||
					fastCache.spawn( 10 );
 | 
			
		||||
					fastCache.set( type, ch );
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user