 				// Do writing.
 				CONFIG::LOGGING
 				{
-					logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType + (isTagAVCC(tag as FLVTagVideo) ? " avcc" : "") + (isTagIFrame(tag as FLVTagVideo) ? " iframe" : ""));
-
-					if(tag is FLVTagScriptDataObject)
-					{
-						try
+					if(logEveryPacket)
+					{
+						logger.debug("Writing tag " + buffer.length + " bytes @ " + lastWrittenTime + "sec type=" + tag.tagType + (isTagAVCC(tag as FLVTagVideo) ? " avcc" : "") + (isTagIFrame(tag as FLVTagVideo) ? " iframe" : ""));
+
+						if(tag is FLVTagScriptDataObject)
 						{
-							var obj:Array = (tag as FLVTagScriptDataObject).objects;
-							for(var j:int=0; j<obj.length; j++)
-								logger.debug("SCRIPT: " + JSON.stringify(obj[j]));
-						}
-						catch(e:*)
-						{
-							logger.debug("FAILED TO PARSE SCRIPT");
+							try
+							{
+								var obj:Array = (tag as FLVTagScriptDataObject).objects;
+								for(var j:int=0; j<obj.length; j++)
+									logger.debug("SCRIPT: " + JSON.stringify(obj[j]));
+							}
+							catch(e:*)
+							{
+								logger.debug("FAILED TO PARSE SCRIPT");
+							}
 						}
 					}
 				}

			{
				CONFIG::LOGGING
				{
					logger.debug("Saw super.bufferLength " + super.bufferLength + " < " + bufferFeedMin);
				}
				return;
			}

						_enhancedSeekTags = new Vector.<FLVTag>();
						_enhancedSeekSawIFrame = false;
					}

					if(sawIFrame)
						_enhancedSeekSawIFrame = true;
					
					if (tag is FLVTagVideo)
					{                                  
