1
0
Fork 0

Log message clean ups.

This commit is contained in:
curt 1998-11-09 23:41:51 +00:00
parent f8e4de2d13
commit b10ec55403
2 changed files with 18 additions and 12 deletions

View file

@ -94,7 +94,7 @@ fgEVENT::~fgEVENT()
void
fgEVENT::run()
{
FG_LOG(FG_TIME, FG_INFO, "Running " << description );
FG_LOG(FG_EVENT, FG_INFO, "Running " << description );
// record starting time
timestamp( &last_run );
@ -131,7 +131,7 @@ fgEVENT::run()
int
fgEVENT::PrintStats() const
{
FG_LOG( FG_TIME, FG_INFO,
FG_LOG( FG_EVENT, FG_INFO,
" " << description
<< " int=" << interval / 1000.0
<< " cum=" << cum_time
@ -149,7 +149,7 @@ fgEVENT_MGR::fgEVENT_MGR( void ) {
// Initialize the scheduling subsystem
void fgEVENT_MGR::Init( void ) {
FG_LOG(FG_TIME, FG_INFO, "Initializing event manager" );
FG_LOG(FG_EVENT, FG_INFO, "Initializing event manager" );
run_queue.erase( run_queue.begin(), run_queue.end() );
event_table.erase( event_table.begin(), event_table.end() );
@ -165,7 +165,7 @@ fgEVENT_MGR::Register( const string& desc,
{
fgEVENT e( desc, cb, status, interval );
FG_LOG( FG_TIME, FG_INFO, "Registering event: " << desc );
FG_LOG( FG_EVENT, FG_INFO, "Registering event: " << desc );
// Actually run the event
e.run();
@ -198,15 +198,15 @@ void fgEVENT_MGR::Resume( void ) {
void
fgEVENT_MGR::PrintStats()
{
FG_LOG( FG_TIME, FG_INFO, "" );
FG_LOG( FG_TIME, FG_INFO, "Event Stats" );
FG_LOG( FG_TIME, FG_INFO, "-----------" );
FG_LOG( FG_EVENT, FG_INFO, "" );
FG_LOG( FG_EVENT, FG_INFO, "Event Stats" );
FG_LOG( FG_EVENT, FG_INFO, "-----------" );
for_each( event_table.begin(),
event_table.end(),
mem_fun_ref( &fgEVENT::PrintStats ));
FG_LOG( FG_TIME, FG_INFO, "");
FG_LOG( FG_EVENT, FG_INFO, "");
}
@ -261,6 +261,9 @@ fgEVENT_MGR::~fgEVENT_MGR( void ) {
// $Log$
// Revision 1.11 1998/11/09 23:41:51 curt
// Log message clean ups.
//
// Revision 1.10 1998/11/07 19:07:13 curt
// Enable release builds using the --without-logging option to the configure
// script. Also a couple log message cleanups, plus some C to C++ comment

View file

@ -194,7 +194,7 @@ static double julian_date(int y, int m, int d) {
/* lazy test to ensure gregorian calendar */
if (y < 1583) {
FG_LOG( FG_TIME, FG_ALERT,
FG_LOG( FG_EVENT, FG_ALERT,
"WHOOPS! Julian dates only valid for 1582 oct 15 or later" );
}
@ -340,7 +340,7 @@ void fgUpdateSunPos( void ) {
t = &cur_time_params;
v = &current_view;
FG_LOG( FG_TIME, FG_INFO, " Updating Sun position" );
FG_LOG( FG_EVENT, FG_INFO, " Updating Sun position" );
// (not sure why there was two)
// fgSunPosition(t->cur_time, &l->sun_lon, &sun_gd_lat);
@ -351,8 +351,8 @@ void fgUpdateSunPos( void ) {
p = Point3D( l->sun_lon, l->sun_gc_lat, sl_radius );
l->fg_sunpos = fgPolarToCart3d(p);
FG_LOG( FG_TIME, FG_INFO, " t->cur_time = " << t->cur_time );
FG_LOG( FG_TIME, FG_INFO,
FG_LOG( FG_EVENT, FG_INFO, " t->cur_time = " << t->cur_time );
FG_LOG( FG_EVENT, FG_INFO,
" Sun Geodetic lat = " << sun_gd_lat
<< " Geocentric lat = " << l->sun_gc_lat );
@ -426,6 +426,9 @@ void fgUpdateSunPos( void ) {
// $Log$
// Revision 1.17 1998/11/09 23:41:53 curt
// Log message clean ups.
//
// Revision 1.16 1998/11/07 19:07:14 curt
// Enable release builds using the --without-logging option to the configure
// script. Also a couple log message cleanups, plus some C to C++ comment