edgent-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thomascristanis <...@git.apache.org>
Subject [GitHub] incubator-edgent pull request #315: [EDGENT-428] Adding support for csv in M...
Date Fri, 04 Aug 2017 19:14:29 GMT
Github user thomascristanis commented on a diff in the pull request:

    https://github.com/apache/incubator-edgent/pull/315#discussion_r131465709
  
    --- Diff: utils/metrics/src/main/java/org/apache/edgent/metrics/MetricsSetup.java ---
    @@ -111,6 +144,25 @@ private MBeanServer mbeanServer() {
             }
             return mBeanServer;
         }
    +
    +    /**
    +     * Creates a default directory for metrics.
    +     * 
    +     * @return directory.getPath()
    +     */
    +    private String createDefaultDirectory() {
    +        Path currentRelativePath = Paths.get("");
    +        String pathMetrics = currentRelativePath.toAbsolutePath().toString() + FOLDER_METRICS;
    +        File directory = new File(pathMetrics);
    +        
    +        if (!directory.mkdirs()) {
    +            // Log: "Could not create the directory log"
    --- End diff --
    
    Great idea @dlaboss.
    I'll do it as soon as possible.
    All Edgent needs to improve this point, the logs.
    
    Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message