Anonymous avatar Anonymous committed a1a2195

adding a comment placeholder for where the lockfile logic should go. removed extraneous whitespace.

Comments (0)

Files changed (1)

src/ganglia-logtailer

 
     # import and instantiate the class from the module passed in.  Files and Class names must be the same.
     try:
-        sys.path.append("/usr/local/share/ganglia-logtailer")       
+        sys.path.append("/usr/local/share/ganglia-logtailer")
         module = __import__(class_name)
         parser = getattr(module, class_name)()
     except Exception, e:
         print "Failed to instantiate parser (line %s): %s" % (lineno(), e)
         sys.exit(1)
 
+    # check for lock file so we don't run multiple copies of the same parser simultaneuosly
+    # this will happen if the log parsing takes more time than the cron period
+    # which is likely on first run when the logfile is huge
+    # FIXME I need to actually add this.
+
+
     # get input to parse
     if ( mode == 'daemon' ):
         # open the log file for tailing
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.