IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 328


Ignore:
Timestamp:
Mar 31, 2004, 12:25:07 PM (22 years ago)
Author:
rhl
Message:

Support PS_LOG_NONE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/logmsg.c

    r267 r328  
    4242
    4343    switch (dest) {
     44      case PS_LOG_NONE:
    4445      case PS_LOG_TO_STDOUT:
    4546      case PS_LOG_TO_STDERR:
     
    8788            break;
    8889          default:
    89             psError(__func__, "Unknown logging keyword %c", *ptr);
     90            psError(__func__, PS_ERR_UNKNOWN, 1, "Unknown logging keyword %c", *ptr);
    9091            break;
    9192        }
     
    114115    static char hostname[HOST_NAME_MAX + 1];
    115116     
    116     if (level > logLevel) {
     117    if (level > logLevel || logDest == PS_LOG_NONE) {
    117118        return;
    118119    }
Note: See TracChangeset for help on using the changeset viewer.