Official eMule-Board: Remove Identifierdesc Flooding Verbose Log - Official eMule-Board

Jump to content


Page 1 of 1

Remove Identifierdesc Flooding Verbose Log 50a logging Rate Topic: -----

#1 User is offline   James R. Bath 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 790
  • Joined: 02-August 04

Posted 14 July 2010 - 05:57 AM

Please provide a level setting that disables IdentifierDesc logging while keeping the rest of the verbose logging.

To me, the present read/write IdentifierDesc logging is more like a bug. There's no context for what, if anything, it means, and it adds 15% more size/processing to the verbose logs. On the off chance that it is a badly implemented "enhancement" that somebody actually dedicated time to add, I'd like a further enhancement.

Presently, the only way to get rid of the IdentifierDesc logging is to set the level to 2, which happens to stop all verbose logging, making level 1 pointless. Levels 3-5 show no significant difference. How about level 5 shows IdentifierDesc lines and all levels below it do not?
Currently recommending and using: eMule beba 2.63
For slot control only, currently recommending: Tombstone Xtended 1.0 (or higher) if you absolutely must have slot control


Posted Image

Zitat

Where there is a mule there is fuel. Where there is a stool sits a fool. - Winston Churchill

0

#2 User is offline   Famerlor 

  • also known as Spike2
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 685
  • Joined: 16-October 04

Posted 14 July 2010 - 08:16 PM

I second that, showing the identifierdesc-lines only at level 5 should be sufficient, so that levels 1-4 are NOT showing these lines.
Posted Image

You want a light mod with source-dropping, Powershare and WiZaRd's ClientAnalyzer ?
Try Spike2-Mod !

You rather want to stick to official eMule but don't want to miss all the new fixes and optimizations from the mods ?
Try OfFixed-Mod !


This post has been edited 1 time, the last time by God: Tomorrow, 12:74 PM
0

#3 User is offline   James R. Bath 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 790
  • Joined: 02-August 04

Posted 14 July 2010 - 09:48 PM

Here's the fix to the 50a source and any mods that also use it without first removing the incomplete code with essential //TODO left:

srchybrid\FileIdentifier.cpp
    DebugLog(DLP_VERYHIGH, _T("Write IdentifierDesc: %u"), byIdentifierDesc);
    pFile->WriteUInt8(byIdentifierDesc);
    uint8 byIdentifierDesc = pFile->ReadUInt8();
    DebugLog(DLP_VERYHIGH, _T("Read IdentifierDesc: %u"), byIdentifierDesc);
    bool bMD4	= ((byIdentifierDesc >>  0) & 0x01) > 0;
    bool bSize	= ((byIdentifierDesc >>  1) & 0x01) > 0;
    bool bAICH	= ((byIdentifierDesc >>  2) & 0x01) > 0;
    uint8 byMOpt= ((byIdentifierDesc >>  3) & 0x03);
    uint8 byOpts= ((byIdentifierDesc >>  5) & 0x07);

For reference, no changes necessary:
Log.h
enum EDebugLogPriority{
	DLP_VERYLOW = 0,
	DLP_LOW,
	DLP_DEFAULT,
	DLP_HIGH,
	DLP_VERYHIGH
};};


Expert code readers may also want to look at whether thePrefs.GetVerboseLogPriority is a redundant function that can be deleted and its 2 dependencies corrected. For example:

PartFile.cpp:
				if (dwError != ERROR_INVALID_FUNCTION && thePrefs.GetVerboseLogPriority() <= DLP_VERYLOW)
					DebugLogError(_T("Failed to apply NTFS sparse file attribute to file \"%s\" - %s"), partfull, GetErrorMessage(dwError, 1));

changed to:
				if (dwError != ERROR_INVALID_FUNCTION)
					DebugLogError(DLP_VERYLOW, _T("Failed to apply NTFS sparse file attribute to file \"%s\" - %s"), partfull, GetErrorMessage(dwError, 1));

This post has been edited by James R. Bath: 14 July 2010 - 10:52 PM

Currently recommending and using: eMule beba 2.63
For slot control only, currently recommending: Tombstone Xtended 1.0 (or higher) if you absolutely must have slot control


Posted Image

Zitat

Where there is a mule there is fuel. Where there is a stool sits a fool. - Winston Churchill

0

#4 User is offline   Tuxman 

  • lizzie and prog-rock fanatic
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,505
  • Joined: 26-July 04

Posted 14 July 2010 - 10:35 PM

View PostJames R. Bath, on 14 Juli 2010 - 11:48 , said:

  uint8 byIdentifierDesc = (uint8)
    DebugLog(DLP_VERYHIGH, _T("Write IdentifierDesc: %u"), byIdentifierDesc);

Something missing there, eh?
[ eMule beba ] :: v2.71 released ...
- feel the lightweight! - featuring Snarl support, the Client Analyzer and tits!
Coded by a Golden eMule Award winner and most people's favorite modder!
..........................................
Music, not muzak:
Progressive Rock :: my last.fm profile
..........................................
eMule user since 0.28 ...
-[ ... and thanks for all the fish! ]-
0

#5 User is offline   James R. Bath 

  • Golden eMule
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 790
  • Joined: 02-August 04

Posted 14 July 2010 - 10:51 PM

Not so much missing as forgot to delete the uint8 byIdentifierDesc = (uint8) line. From that to the DebugLog doesn't need any change. Thank you and corrected.

This post has been edited by James R. Bath: 14 July 2010 - 10:53 PM

Currently recommending and using: eMule beba 2.63
For slot control only, currently recommending: Tombstone Xtended 1.0 (or higher) if you absolutely must have slot control


Posted Image

Zitat

Where there is a mule there is fuel. Where there is a stool sits a fool. - Winston Churchill

0

#6 User is offline   aaa3i 

  • Member
  • PipPip
  • Group: Members
  • Posts: 17
  • Joined: 22-June 08

Posted 01 June 2012 - 04:33 AM

this still need to be fixed :( please
neo & stulle user, if someone freaks out from zzratio, i recommend beba, though its much closer to original than these, but the only non-zz with suqwt & releaseprio (can be set for small files e.g.) for fairness -- Anoxie's pic
Posted Image
We want a somehowmutilatedin2acceptable4devs SUQWT into official! And more effective auto-UL-prio which heavy-handedly scores down well-spread files into very low, and scores up yet-inco's-on-t-network-butwhichhehas in2 high. More QR separation based on prio-s. And more intelligent UL chunk selection to help rare files even more. All these must be autoset and omnipresent, for us not to suffer from all the retards who dont care. And assignable text comments to friends (everybody is noname, how to remember when and why have we added 'em). And please, a BIG big red /whatever MORE visible and drastic/ warning to low-ids, both first-run &always when low, with explanation; instead of forced punishment of them... (i want to upload to them)... and renaming low and high id into "limited(please fix in config)" and "full connection"! with a nice explanation in t relevant configwindow - not just t setting boxes waiting there for filling; also the client ports box shd b t top, not line speed, with marking "Ports (IMPORTANT)" and removing "client", if possible in a red border, if not the whole box elevatedheightlooking like a button. probably conn should b 1st & folders 2nd group in the options! What use r all goodies when nothing is existing of them outside a few % of users... and ok i also like the idea of neo-style subchunk-sharing (useful with veryrares/grabbing the most from forever-incos), &protcl-extsn flagslist in client dets (looks cool, pretty & neat: ).
Feature-whining FTW!/WTF?/xD
-1

  • Member Options

Page 1 of 1

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users