logo
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic "Suppress=" Question (Read 1519 times)
BobIsUnreal
God Member
*****
Offline


gonna be dead soon, gg

Posts: 765
Joined: Apr 12th, 2010
Gender: Male
"Suppress=" Question
Nov 9th, 2012 at 12:31am
Print Post  
I was playing around with Suppress to hide log spam in serverlogs and increase readability while decreasing file size by dropping redundant data ,
and im curious as to if suppressing stuff stops logging or stops operations,
my assumptuion was it just ignores logging the info starting with =X
but apparently is stops processing as well , if i add Suppress=log  ,
everything still loades, but  i can no longer join the server.
it just sits there,
NetComeGo: Open MyLevel 11/08/12 19:19:50 76.xxx.xx.xxx:56287
DevNet: NotifyAcceptingChannel Control 0 server Level dug.MyLevel: Accepted
and the client sits there connecting forever, this also seems to happen when you suppress the gametype log calls.
  

[REM_img]http://i.imgur.com/V3OSsDu.gif.disable[/img]http://i.imgur.com/JOu38Gs.gif
Back to top
IP Logged
 
Smirftsch
Forum Administrator
*****
Offline



Posts: 8100
Location: at home
Joined: Apr 30th, 1998
Gender: Male
Re: "Suppress=" Question
Reply #1 - Nov 9th, 2012 at 6:56am
Print Post  
suppress was not designed to hide the main log function, some things (variables f.e.) are just not being set and some functions may not be called then from what I see and that probably causes the stall Smiley

In my experience the most spamlog is usually caused by some mods with warnings, such as the famous accessed none. Those things are usually fixed very quickly, but require the mod to be recompiled and are often not fixed because of that.
  

Sometimes you have to lose a fight to win the war.
Back to top
WWWICQ  
IP Logged
 
BobIsUnreal
God Member
*****
Offline


gonna be dead soon, gg

Posts: 765
Joined: Apr 12th, 2010
Gender: Male
Re: "Suppress=" Question
Reply #2 - Nov 9th, 2012 at 2:59pm
Print Post  
Thats explains it i suppose. only you really would have know the answer i guess.

I am actually trying to  hide the "loading package x" and"server unlink" messages tho , as they are not that helpful to save into the log for review ( i save backlogs forever) and it makes it easier to  scroll though them looking for certain  entries , connections , chats , scripterrors etc when there isnt the same 40   packages loading  every time a map changes.
i thought about having a program delete lines out of the file , but that messes up the modified dates and messes my sorting.
  

[REM_img]http://i.imgur.com/V3OSsDu.gif.disable[/img]http://i.imgur.com/JOu38Gs.gif
Back to top
IP Logged
 
スマイル・ドラゴン
Betatester
Offline


『smile。。。』

Posts: 1236
Location: Independence, KS
Joined: Feb 10th, 2008
Gender: Male
Re: "Suppress=" Question
Reply #3 - Nov 16th, 2012 at 12:16am
Print Post  
You can have a program that takes out the lines but preserves the modified date.

Though I never really figured out how modified dates work in Java. (I always managed to make the file seem like it came from the stone age...) It might be some convoluted API call when it comes to C\C++. If you're not a hardcore programmer then you might have to ask around if someone's willing to program such a thing, or atleast give you a few pointers on how to preserve the modified date while still writing to said file.

If you want to not see scriptwarnings then you can Suppress=ScriptWarning and it wont cause any problems. Suppressing the main log function breaks alot of different things, so the least you can do is just suppress the ScriptWarning key.
  

“I am the dragon without a name.”
Đŕrk-_¦_-Ńďght.: / κυνικός Δράκων / スマイル・ドラゴン / Draco Nihil
Back to top
IP Logged
 
BobIsUnreal
God Member
*****
Offline


gonna be dead soon, gg

Posts: 765
Joined: Apr 12th, 2010
Gender: Male
Re: "Suppress=" Question
Reply #4 - Nov 16th, 2012 at 1:53am
Print Post  
i considered  it 'could' be done similarly with some sort of File.SetAttribute thing... or worst case change the system date back  before the file was written to match the old access modified dates automatically. not sure it's worth the trouble honesty for me or anyone to make such a specific thing tho. If i didnt try to do such a thing yet after 4 years , it will probably never happen anyway.. hgw many times am i gonna look at the  old file logs anyway even..




  

[REM_img]http://i.imgur.com/V3OSsDu.gif.disable[/img]http://i.imgur.com/JOu38Gs.gif
Back to top
IP Logged
 
GreatEmerald
Oldunreal MasterPoster
*
Offline


The Great Emerald

Posts: 5361
Location: Vilnius, Lithuania
Joined: May 21st, 2007
Gender: Male
Re: "Suppress=" Question
Reply #5 - Nov 17th, 2012 at 2:17pm
Print Post  
You could always just append the date and time to the log filename.
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint
Bookmarks: del.icio.us Digg Facebook Google Google+ Linked in reddit StumbleUpon Twitter Yahoo