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 6fb3b30 commit ad2b30e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pappl/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,8 @@ papplSystemRun(pappl_system_t *system) // I - System
{
cups_thread_t tid; // Thread ID

papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Starting socket listener thread.");

if ((tid = cupsThreadCreate((void *(*)(void *))_papplPrinterRunRaw, printer)) == CUPS_THREAD_INVALID)
{
// Unable to create listener thread...
Expand Down Expand Up @@ -589,6 +591,8 @@ papplSystemRun(pappl_system_t *system) // I - System
{
cups_thread_t tid; // Thread ID

papplLogPrinter(printer, PAPPL_LOGLEVEL_DEBUG, "Starting USB listener thread.");

if ((tid = cupsThreadCreate((void *(*)(void *))_papplPrinterRunUSB, printer)) == CUPS_THREAD_INVALID)
{
// Unable to create USB thread...
Expand All @@ -601,6 +605,8 @@ papplSystemRun(pappl_system_t *system) // I - System
}

// Loop until we are shutdown or have a hard error...
papplLog(system, PAPPL_LOGLEVEL_DEBUG, "Entering run loop.");

time(&idletime);

for (;;)
Expand Down

0 comments on commit ad2b30e

Please sign in to comment.