TinTin++ Mud Client The TinTin++ message board

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
TinTin++ Mud Client

Verbose output when using #read from an alias

 
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Fri Sep 26, 2014 2:56 pm    Post subject: Verbose output when using #read from an alias Reply with quote

I have some wrappers that break up my codebase into modules. I issue #read commands from an alias.

Even with #config verbose enabled, I never see if anything fails to load. If I hardcode the read commands with: #line verbose #read <file> then I always see the verbose information - though I really only want it when I'm debugging.

Because I can't tie directly into the underlying code (for example, through an API that returns the list of loaded classes), I can't actually verify that they were loaded with my own code.

In any case, it would be awesome if #config verbose produced output when #read commands were issued from an alias.
Back to top
View user's profile Send private message AIM Address
Scandum
Site Admin


Joined: 03 Dec 2004
Posts: 3770

PostPosted: Fri Sep 26, 2014 5:42 pm    Post subject: Reply with quote

People will complain if I make it verbose.

If #line verbose works that's the way to go.
Back to top
View user's profile Send private message Send e-mail
atraeyu



Joined: 12 Dec 2007
Posts: 165

PostPosted: Sat Sep 27, 2014 10:05 am    Post subject: Reply with quote

KK.

May have a solution that works for me, still testing:

Code:
#var READ_VERBOSE   1;
#alias read {
    #if { "$READ_VERBOSE" != "1" } {
        msg {DEBUG} {Reading %1.};
        #read %1;
    };

    #else {
        msg {DEBUG} {Reading %1 with verbose output.};
        #line verbose #read %1;
    };
}
Back to top
View user's profile Send private message AIM Address
Display posts from previous:   
Post new topic   Reply to topic    The TinTin++ message board Forum Index -> Feature Requests All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads Get TinTin++ Mud Client at SourceForge.net. Fast, secure and Free Open Source software downloads
TinTin++ Homepage

Powered by phpBB © 2001, 2002 phpBB Group