Re: Signal Raised Error (Part II)

This WebDNA talk-list message is from

1997


It keeps the original formatting.
numero = 12589
interpreted = N
texte = >I'm finding that I have to clean out the error log every couple of days.There are a couple of things you can do. The file called ErrorTemplate.tmpl controls what goes into the error log, so you can change that in a few ways:1) take all the text out of ErrorTemplate.tmpl, so it does no logging whatsoever 2) change it to[appendfile file=/WebCatalog/ErrorLog.txt&secure=F][date] [time] [command] [ipaddress] [errormessage] [/appendfile]so it doesn't treat the error log like a database (and therefore won't get sucked into RAM)3) wrap some WebDNA around the existing logging code so it ignores authorization failures that are caused by empty username/passwords (the most common cause)Maybe something like:[showif [errormessage]^Not Authorized][hideif [username]=]...previous contents of ErrorTemplate.tmpl...[/hideif][/showif]which I'm sure is not exactly right, but it illustrates the idea of hiding the error log if the username is blank and the error was an authorization error.>Maybe I'm using the [protect] tag incorrectly. Here is the code I have on all of my protected pages. Protected meaning subscriber only access areas.You're using it just fine. [Protect] actually makes use of the [Authenticate] tag as one of its tools, and in fact [Protect groupname] is just shorthand for [Include file=/MultiGroupChecker&groups=groupname]If you look at MultiGroupChecker, you'll see exactly the source WebDNA for the [protect] tag, so you can write your own that mimics it (perhaps using your own users.db database).Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Associated Messages, from the most recent to the oldest:

    
  1. Re: Signal Raised Error (Part II) (Grant Hulbert 1997)
  2. Re: Signal Raised Error (Part II) (Mark Anderson 1997)
>I'm finding that I have to clean out the error log every couple of days.There are a couple of things you can do. The file called ErrorTemplate.tmpl controls what goes into the error log, so you can change that in a few ways:1) take all the text out of ErrorTemplate.tmpl, so it does no logging whatsoever 2) change it to[appendfile file=/WebCatalog/ErrorLog.txt&secure=F][date] [time] [command] [ipaddress] [errormessage] [/appendfile]so it doesn't treat the error log like a database (and therefore won't get sucked into RAM)3) wrap some WebDNA around the existing logging code so it ignores authorization failures that are caused by empty username/passwords (the most common cause)Maybe something like:[showif [errormessage]^Not Authorized][hideif [username]=]...previous contents of ErrorTemplate.tmpl...[/hideif][/showif]which I'm sure is not exactly right, but it illustrates the idea of hiding the error log if the username is blank and the error was an authorization error.>Maybe I'm using the [protect] tag incorrectly. Here is the code I have on all of my protected pages. Protected meaning subscriber only access areas.You're using it just fine. [protect] actually makes use of the [authenticate] tag as one of its tools, and in fact [Protect groupname] is just shorthand for [Include file=/MultiGroupChecker&groups=groupname]If you look at MultiGroupChecker, you'll see exactly the source WebDNA for the [protect] tag, so you can write your own that mimics it (perhaps using your own users.db database).Grant Hulbert, V.P. Engineering | ===== Tools for WebWarriors ===== Pacific Coast Software | WebCatalog Pro, WebCommerce Solution 11770 Bernardo Plaza Court | SiteEdit Pro, SiteCheck, PhotoMaster San Diego, CA 92128 | SiteGuard 619/675-1106 Fax: 619/675-0372 | http://www.smithmicro.com Grant Hulbert

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Problem displaying search result (1997) Migrating to NT -Reply (1997) Search a date field by month only... (1999) Code for Accessing E-mail Accounts (2005) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) [WebDNA] FileUpload Issue ... cont. (2012) Sorting by date (1997) Carts & cookies (1999) WebCatalog and WebMerchant reviewed by InfoWorld (1997) [WebDNA] Mass email using WebDNA (2008) Press Release hit the NewsWire!!! (1997) TRAINING videos - Prove IT. (1998) taxTotal (1997) ImageMagick on OSX (2003) billing system (2003) WCS Newbie question (1997) (1997) No Data (1997) showif funnyness in Netscape only. (2002) WebCatalog and directory indexing (1998)