IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 6, 2007, 10:18:34 AM (19 years ago)
Author:
Paul Price
Message:

Should be able to specify trace destination even if compiling with PS_NO_TRACE.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/config/pmConfig.c

    r15446 r15469  
    510510
    511511        // Set trace destinations
    512         #ifndef PS_NO_TRACE
    513512        argNum = psArgumentGet(*argc, argv, "-tracedest");
    514513        if (argNum > 0) {
     
    531530            psWarning("Unable to set log destination to file %d\n", config->traceFD);
    532531        }
    533         #endif
    534532
    535533        // Allow command line options to override defaults for logging.
     
    661659            if (!cameraReadFormats(item->data.md, item->name)) {
    662660                psWarning("Unable to read formats for camera %s: removed.\n", item->name);
    663                 psErrorStackPrint(stderr, "errors from read failure\n");
    664                 psErrorClear();
     661                psErrorStackPrint(stderr, "errors from read failure\n");
     662                psErrorClear();
    665663                psMetadataRemoveKey(cameras, item->name);
    666                 continue;
     664                continue;
    667665            }
    668666            if (!cameraReadCalibrations(item->data.md, item->name)) {
    669667                psWarning("Unable to read calibrations for camera %s: removed.\n", item->name);
    670                 psErrorStackPrint(stderr, "errors from read failure\n");
    671                 psErrorClear();
     668                psErrorStackPrint(stderr, "errors from read failure\n");
     669                psErrorClear();
    672670                psMetadataRemoveKey(cameras, item->name);
    673                 continue;
     671                continue;
    674672            }
    675673        }
Note: See TracChangeset for help on using the changeset viewer.