Commits

Anonymous committed a1a2195

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

  • Participants
  • Parent commits 7be66f1

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