fix:add logs
This commit is contained in:
parent
e6eb6699a2
commit
db7242aafe
|
@ -6,6 +6,7 @@ import com.baomidou.mybatisplus.core.toolkit.CollectionUtils;
|
|||
import com.baomidou.mybatisplus.core.toolkit.StringPool;
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.io.FileUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.commons.net.ftp.FTP;
|
||||
|
@ -46,6 +47,7 @@ import java.text.ParseException;
|
|||
import java.util.*;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
public class GammaFileUtil extends AbstractLogOrReport {
|
||||
|
||||
@Autowired
|
||||
|
@ -1549,8 +1551,12 @@ public class GammaFileUtil extends AbstractLogOrReport {
|
|||
peak.recoilDeltaChan = "1";
|
||||
}
|
||||
}
|
||||
} catch (JsonProcessingException e) {
|
||||
throw new RuntimeException(e);
|
||||
} catch (JsonProcessingException e){
|
||||
e.printStackTrace();
|
||||
log.error("AnalyseSpectrum(): {}", e.getMessage());
|
||||
} catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
log.error("AnalyseSpectrum(): {}", e.getMessage());
|
||||
} finally {
|
||||
if (Objects.nonNull(tmpFile)) {
|
||||
tmpFile.delete();
|
||||
|
|
Loading…
Reference in New Issue
Block a user