3232using palette = SCANsat . SCAN_UI . UI_Framework . SCANcolorUtil ;
3333using FinePrint . Contracts . Parameters ;
3434using UnityEngine . Profiling ;
35+ using Log = KSPBuildTools . Log ;
3536
3637namespace SCANsat
3738{
@@ -230,7 +231,7 @@ public void addToBodyData(CelestialBody b, SCANdata data)
230231 }
231232 else
232233 {
233- UnityEngine . Debug . LogError ( "[SCANsat] Warning: SCANdata Dictionary Already Contains Key of This Type") ;
234+ Log . Error ( " Warning: SCANdata Dictionary Already Contains Key of This Type") ;
234235 }
235236 }
236237
@@ -364,7 +365,7 @@ public static void addToTerrainConfigData(string name, SCANterrainConfig data)
364365 }
365366 else
366367 {
367- UnityEngine . Debug . LogError ( "[SCANsat] Warning: SCANterrain Data Dictionary Already Contains Key Of This Type") ;
368+ Log . Error ( " SCANterrain Data Dictionary Already Contains Key Of This Type") ;
368369 }
369370 }
370371
@@ -494,7 +495,7 @@ public static void addToResourceData(string name, SCANresourceGlobal res)
494495 }
495496 else
496497 {
497- UnityEngine . Debug . LogError ( string . Format ( "[SCANsat] Warning: SCANResource Dictionary Already Contains Key of This Type: Resource: {0}" , name ) ) ;
498+ Log . Error ( string . Format ( "SCANResource Dictionary Already Contains Key of This Type: Resource: {0}" , name ) ) ;
498499 }
499500 }
500501
@@ -506,7 +507,7 @@ public static void addToLoadedResourceNames(string name, bool warn = true)
506507 }
507508 else if ( warn )
508509 {
509- UnityEngine . Debug . LogError ( string . Format ( "[SCANsat] Warning: Loaded Resource List Already Contains Resource Of Name: {0}" , name ) ) ;
510+ Log . Error ( string . Format ( "Loaded Resource List Already Contains Resource Of Name: {0}" , name ) ) ;
510511 }
511512 }
512513
@@ -659,7 +660,7 @@ public override void OnLoad(ConfigNode node)
659660 }
660661 catch ( Exception e )
661662 {
662- UnityEngine . Debug . LogError ( string . Format ( "[SCANsat] Error in loading Celestial Body [{0}]...\n {1}" , body_name , e ) ) ;
663+ Log . Error ( string . Format ( "Error in loading Celestial Body [{0}]...\n {1}" , body_name , e ) ) ;
663664 continue ;
664665 }
665666
@@ -2281,7 +2282,7 @@ private void loadCustomResourceValues(ConfigNode node)
22812282 }
22822283 catch ( Exception e )
22832284 {
2284- UnityEngine . Debug . LogError ( "[SCANsat] Error in loading Celestial Body...\n " + e ) ;
2285+ Log . Error ( " Error in loading Celestial Body...\n " + e ) ;
22852286 return ;
22862287 }
22872288
@@ -2506,7 +2507,7 @@ private void finishRegistration(Guid id)
25062507 }
25072508 catch ( Exception e )
25082509 {
2509- UnityEngine . Debug . LogError ( "[SCANsat] Something went wrong while trying to load this SCANsat vessel; moving on the next vessel... \n " + e ) ;
2510+ Log . Error ( " Something went wrong while trying to load this SCANsat vessel; moving on the next vessel... \n " + e ) ;
25102511 }
25112512
25122513 if ( sv . vessel == null )
@@ -2543,7 +2544,7 @@ private void registerSensor(Guid id, SCANtype sensors, double _fov, double _min_
25432544 }
25442545 catch ( Exception e )
25452546 {
2546- UnityEngine . Debug . LogError ( "[SCANsat] Something went wrong while trying to load this SCANsat vessel; moving on the next vessel... \n " + e ) ;
2547+ Log . Error ( " Something went wrong while trying to load this SCANsat vessel; moving on the next vessel... \n " + e ) ;
25472548 }
25482549 if ( sv . vessel == null )
25492550 {
0 commit comments