Commits

Anonymous committed 0351673

#i10000# Avoid polluting instsetoonative/util with log files.

Comments (0)

Files changed (1)

solenv/bin/modules/packager/exiter.pm

 	$infoline = "***************************************************************\n";
 	push(@packager::globals::logfileinfo, $infoline);
 
-	packager::files::save_file($packager::globals::logfilename ,\@packager::globals::logfileinfo);
+    if ( $packager::globals::logging )
+    {
+        packager::files::save_file($packager::globals::logfilename ,\@packager::globals::logfileinfo);
+        print("Saved logfile: $packager::globals::logfilename\n");
+    }
 
-	print("Saved logfile: $packager::globals::logfilename\n");
 	print("$infoline");
 		
 	exit(-1);	
 }
 
-1;
+1;