Permalink
Browse files

Add some debugging to the replication checking

  • Loading branch information...
Ken Moore
Ken Moore committed Oct 15, 2013
1 parent 9408f08 commit a95f8f74b65574cccbb7df0905fcc9569c527248
Showing with 4 additions and 1 deletion.
  1. +3 −0 lp-tray/LPWatcher.cpp
  2. +1 −1 lp-tray/Makefile
View
@@ -168,6 +168,7 @@ void LPWatcher::readLogFile(bool quiet){
FILE_REPLICATION = dev;
dev = message.section(" ",5,5,QString::SectionSkipEmpty);
//Make sure the device is currently setup for replication
+ qDebug() << "Replication List:" << reppools << "device:" << dev;
if( !reppools.contains(dev) ){ FILE_REPLICATION.clear(); continue; }
//Try to start the replication watcher
if( startRepFileWatcher() ){
@@ -185,6 +186,7 @@ void LPWatcher::readLogFile(bool quiet){
stopRepFileWatcher();
dev = message.section(" ",-1).simplified();
//Make sure the device is currently setup for replication
+ qDebug() << "Replication List:" << reppools << "device:" << dev;
if( reppools.contains(dev) ){
//Now set the status of the process
LOGS.insert(20,"FINISHED");
@@ -210,6 +212,7 @@ void LPWatcher::readLogFile(bool quiet){
stopRepFileWatcher();
//Now set the status of the process
dev = message.section(" ",-1).simplified();
+ qDebug() << "Replication List:" << reppools << "device:" << dev;
//Make sure the device is currently setup for replication
if( reppools.contains(dev) ){
//Update the logs
View
@@ -1,6 +1,6 @@
#############################################################################
# Makefile for building: life-preserver-tray
-# Generated by qmake (2.01a) (Qt 4.8.4) on: Thu Oct 10 10:49:34 2013
+# Generated by qmake (2.01a) (Qt 4.8.4) on: Tue Oct 15 12:26:43 2013
# Project: lp-tray.pro
# Template: app
# Command: /usr/local/bin/qmake-qt4 -o Makefile lp-tray.pro

0 comments on commit a95f8f7

Please sign in to comment.