Branch: Tag:

2002-04-19

2002-04-19 13:41:12 by Johan Schön <js@opera.com>

A problem with inserting an entry in the log isn't serious enough to cause a backtrace in the web gui.

Rev: lib/modules/Search.pmod/Utils.pmod:1.34

1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Utils.pmod,v 1.33 2001/11/22 14:48:16 js Exp $ + // $Id: Utils.pmod,v 1.34 2002/04/19 13:41:12 js Exp $      #if !constant(report_error)   #define report_error werror
615:    if(zero_type(log_profile))    log_profile = profile;    +  mixed err= +  catch +  {    if(extra)    db->query("INSERT INTO eventlog (profile,code,type,extra) VALUES (%d,%d,%s,%s)",    log_profile, code, type, extra);    else    db->query("INSERT INTO eventlog (profile, code,type) VALUES (%d,%d,%s)",    log_profile, code, type); -  +  }; +  if(err) +  werror(describe_backtrace(err));    }       //!