]> git.mxchange.org Git - simgear.git/commitdiff
MSVC++ tweaks contributed by Christian Mayer.
authorcurt <curt>
Tue, 21 Mar 2000 21:06:07 +0000 (21:06 +0000)
committercurt <curt>
Tue, 21 Mar 2000 21:06:07 +0000 (21:06 +0000)
simgear/ephemeris/stars.cxx

index ff5d6aa4103118e4ed6c3fb42db61b8268036273..4ff128b557b3a6fa1799f3ec31156572f4adf672 100644 (file)
@@ -21,6 +21,7 @@
 // $Id$
 
 
+#include <simgear/debug/logstream.hxx>
 #include <simgear/misc/fgstream.hxx>
 
 #include "stars.hxx"
@@ -49,11 +50,12 @@ bool FGStars::load() {
 
      // build the full path name to the stars data base file
     data_path.append( "stars" );
-    cout << "  Loading stars from " << data_path.str() << endl;
+    FG_LOG( FG_ASTRO, FG_INFO, "  Loading stars from " << data_path.str() );
 
     fg_gzifstream in( data_path.str() );
     if ( ! in.is_open() ) {
-       cout << "Cannot open star file: " << data_path.str() << endl;
+       FG_LOG( FG_ASTRO, FG_ALERT, "Cannot open star file: "
+               << data_path.str() );
        exit(-1);
     }
 
@@ -110,7 +112,7 @@ bool FGStars::load() {
        ++nstars;
     }
 
-    cout << "  Loaded " << nstars << " stars" << endl;
+    FG_LOG( FG_ASTRO, FG_INFO, "  Loaded " << nstars << " stars" );
 
     return true;
 }