Skip to content

Commit

Permalink
Some installing events are logged now.
Browse files Browse the repository at this point in the history
  • Loading branch information
asheb committed Sep 24, 2008
1 parent b1b8ec4 commit eecdf53
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Expand Up @@ -93,6 +93,8 @@ private void start(int port) throws InstallerException {
if (!prepared)
throw new IllegalStateException("ExternalInstaller should be prepared before starting");

Log.write("Starting external installer");

String javaHome = System.getProperty("java.home");
File java = new File(javaHome, javaRelativePath());

Expand All @@ -118,6 +120,8 @@ private void start(int port) throws InstallerException {
pb.command(cmd);
pb.environment().put(EXTINSTALLER_PORT, Integer.toString(port));

Log.write(cmd.toString());

try {
pb.start();
} catch (IOException e) {
Expand Down
Expand Up @@ -15,6 +15,7 @@
import com.yoursway.autoupdater.installer.InstallerException;
import com.yoursway.autoupdater.protos.LocalRepositoryProtos.LocalProductVersionMemento.State;
import com.yoursway.utils.log.Log;
import com.yoursway.utils.log.LogEntryType;

final class ProductVersionState_Installing extends AbstractProductVersionState implements FileLibraryListener {

Expand Down Expand Up @@ -55,6 +56,7 @@ public void libraryChanged(LibraryState state) {
fire().downloading(progress);
}
} catch (Throwable e) {
Log.write(e.getClass().getSimpleName() + ": " + e.getMessage(), LogEntryType.ERROR);
AutoupdaterException ae = e instanceof AutoupdaterException ? (AutoupdaterException) e
: new AutoupdaterException(e);

Expand Down

0 comments on commit eecdf53

Please sign in to comment.