Skip to content

Commit

Permalink
Add computer's name in the log output.
Browse files Browse the repository at this point in the history
  • Loading branch information
fcyu committed Jun 5, 2017
1 parent 1096e83 commit 54ff9fd
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/main/java/proteomics/ECL2.java
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
import uk.ac.ebi.pride.tools.mzxml_parser.MzXMLParsingException;

import java.io.*;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.*;
import java.util.concurrent.*;

Expand All @@ -40,6 +42,14 @@ public static void main(String[] args) {

logger.info("ECL2 Version {}", version);
logger.info("Author: Fengchao Yu. Email: fyuab@connect.ust.hk");

try {
String hostName = InetAddress.getLocalHost().getHostName();
logger.info("Computer: {}", hostName);
} catch (UnknownHostException ex) {
logger.warn("Cannot get the computer's name.");
}

logger.info("Parameter file: {}.", parameter_path);
logger.info("Spectra file: {}.", spectra_path);

Expand Down

0 comments on commit 54ff9fd

Please sign in to comment.