Complete.Org: Mailing Lists: Archives: freeciv-dev: September 2000:
[Freeciv-Dev] Re: [PATCH] Names in rulesets. (PR#559)
Home

[Freeciv-Dev] Re: [PATCH] Names in rulesets. (PR#559)

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: David Pfitzner <dwp@xxxxxxxxxxxxxx>
Cc: freeciv-dev@xxxxxxxxxxx, bugs@xxxxxxxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: [PATCH] Names in rulesets. (PR#559)
From: gs234@xxxxxxxxx (Gaute B. Strokkenes)
Date: 15 Sep 2000 08:01:01 +0200

David Pfitzner <dwp@xxxxxxxxxxxxxx> writes:

> gs234@xxxxxxxxx (Gaute B. Strokkenes) wrote:
> 
> > Speaking of log messages, I see that some are marked for
> > translation, and some are not.  What is correct?
> 
> It generally depends whether the log message is likely to be
> seen by a user under normal use, or only by a developer, or 
> while debugging, or to be reported to developers, etc.

So basically, it's a judgement call, yes?

> >  Also, the choice of log level seems very arbitrary in places.
> 
> Such as?

Well, LOG_DEBUG and LOG_FATAL are obvious.  The distinction between
LOG_NORMAL, LOG_VERBOSE and LOG_ERROR seems a bit blurred in places.
For instance, on line 1869 in server/ruleset.c, LOG_VERBOSE is used to
indicate that the government that a title is meant for couldn't be
found.

On the other hand, around line 1835 in the same file Freeciv would die
with a LOG_FATAL message if the sex of a ruler title is not male or
female, though I changed this to LOG_ERROR (defaulting to male) in my
patch.  It seems to me that these are errors of similar magnitude, and
that Freeciv should handle them in a similar manner (by changing the
LOG_VERBOSE to a LOG_ERROR.)

The line numbers refer ruleset.c with my patch applied, btw.

-- 
Big Gaute (not to be confused with LG)
I want you to organize my PASTRY trays...  my TEA-TINS are gleaming in
 formation like a ROW of DRUM MAJORETTES --
 please don't be FURIOUS with me --



[Prev in Thread] Current Thread [Next in Thread]