Changeset 11249


Ignore:
Timestamp:
Sep 22, 2010, 3:16:42 PM (11 years ago)
Author:
charles
Message:

(trunk daemon) #3511, part 1 of 2: add command-line options to the daemon to set verbosity level

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/daemon/daemon.c

    r11163 r11249  
    8686static const struct tr_option options[] =
    8787{
     88
    8889    { 'a', "allowed", "Allowed IP addresses.  (Default: " TR_DEFAULT_RPC_WHITELIST ")", "a", 1, "<list>" },
    8990    { 'b', "blocklist", "Enable peer blocklists", "b", 0, NULL },
     
    103104    { 'v', "password", "Set password for authentication", "v", 1, "<password>" },
    104105    { 'V', "version", "Show version number and exit", "V", 0, NULL },
     106    { 810, "log-err", "Show error messages", NULL, 0, NULL },
     107    { 811, "log-info", "Show error and info messages", NULL, 0, NULL },
     108    { 812, "log-debug", "Show error, info, and debug messages", NULL, 0, NULL },
    105109    { 'w', "download-dir", "Where to save downloaded data", "w", 1, "<path>" },
    106110    { 800, "paused", "Pause all torrents on startup", NULL, 0, NULL },
     
    436440            case 'Y': tr_bencDictAddBool( &settings, TR_PREFS_KEY_LPD_ENABLED, FALSE );
    437441                      break;
     442            case 810: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_ERR );
     443                      break;
     444            case 811: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_INF );
     445                      break;
     446            case 812: tr_bencDictAddInt( &settings,  TR_PREFS_KEY_MSGLEVEL, TR_MSG_DBG );
     447                      break;
    438448            default:  showUsage( );
    439449                      break;
Note: See TracChangeset for help on using the changeset viewer.