Skip to content

Commit

Permalink
Add debug logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Dec 30, 2024
1 parent ad2b30e commit d99bcac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pappl/printer-raw.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//
// Raw printing support for the Printer Application Framework
//
// Copyright © 2019-2023 by Michael R Sweet.
// Copyright © 2019-2024 by Michael R Sweet.
//
// Licensed under Apache License v2.0. See the file "LICENSE" for more
// information.
Expand Down Expand Up @@ -79,7 +79,7 @@ _papplPrinterRunRaw(
int count; // Return value from poll()


papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Running socket print thread with %u listeners.", (unsigned)printer->num_raw_listeners);
papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Socket listener thread starting with %u listeners.", (unsigned)printer->num_raw_listeners);

_papplRWLockWrite(printer);
printer->raw_active = true;
Expand Down Expand Up @@ -229,5 +229,7 @@ _papplPrinterRunRaw(
printer->raw_active = false;
_papplRWUnlock(printer);

papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Socket listener thread exiting on shutdown/delete.");

return (NULL);
}

0 comments on commit d99bcac

Please sign in to comment.