diff options
-rw-r--r-- | plpprint/plpprintd.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/plpprint/plpprintd.cc b/plpprint/plpprintd.cc index 63ce6a3..e324a7e 100644 --- a/plpprint/plpprintd.cc +++ b/plpprint/plpprintd.cc @@ -1040,9 +1040,11 @@ main(int argc, char **argv) ret = wPrt->initPrinter(); if (ret == rfsv::E_PSI_GEN_NONE) service_loop(); - else - debuglog("plpprintd: could not connect: %s", - ret.toString().c_str()); + else { + if (debug) + debuglog("plpprintd: could not connect: %s", + ret.toString().c_str()); + } delete wPrt; sleep(1); } else { |