Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | LRN: Use GNUNET_EXTRA_LOGGING to manage compile-time logging calls | Christian Grothoff | 2011-10-04 |
| | | | | | | (#1805). | ||
* | LRN's big logging rewrite (#1805): | Christian Grothoff | 2011-10-04 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * GNUNET_BOTTOM_LOGLEVEL and GNUNET_TOP_LOGLEVEL set global levels Use bottom level to force logging to be more verbose than configured Use top level to force logging to be less verbose than configured Obviously, bottom <= top * GNUNET_LOG sets per-component levels GNUNET_LOG looks like this: name[/bottom[/top]]/... name starts with a non-digit character, must not include '/' bottom and top must consist only of digits, or be empty a description is only used if it matches the component exactly as a special exception (for now) the name '*' matches any component per-component loglevels override global loglevels global levels override whatever is given via arguments or in config Examples: test_client/8/8/ run test_client with DEBUG level (usually leads to a timeout, by the way) */2/2/core/8/8/transport/4/4 run everything with WARNING, core - with DEBUG, transport - with INFO *//1/peerinfo/4/ run everything with top loglevel ERROR, global/configured bottom loglevel, and peerinfo - with bottom loglevel INFO and global/configured top loglevel statistics/ does nothing * Added GNUNET_ERROR_TYPE_UNSPECIFIED enum value, to hold -1. Its corresponding string is NULL. * Changed the logger calls as Grothoff suggested - to use static int to hold the result of runtime evaluation of logability. Logging can be unconditionally disabled in advance by defining GNUNET_LOG_CALL_STATUS to 0, and enabled in advance by defining it to 1. * Added GNUNET_CULL_LOGGING, which, if defined, completely culls out all logging calls at compile time. * Log definition parsing is only done once, results are cached. * Changed definition format, now it looks like this: [component|*|];[file|*|];[function|*|];[from_line[-to_line]];level/[component...] All field separators are mandatory (but some fields could be empty or be '*'). Line definition must be either empty or "number" or "number-number" Level definition must not be empty, and is a string representation of the level (i.e. DEBUG, WARNING, INFO, etc). Definition entry must end with a slash, whether or not there's another entry after it. File name is matched to the end of __FILE__, which allows file name to match not only the base name, but also directories leading to it. * Removed default WARNING loglevel from program and service utility code. Now they default to NULL (UNSPECIFIED) level, which can be overriden by GNUNET_LOG definition, if no level is specified via config or commandline. Log levels from config or commandline are overriden by GNUNET_FORCE_LOG. If GNUNET_*LOG are undefined, and no levels came from config or commandline, logger internally defaults to WARNING level. Add --enable-logging configure option | ||
* | fix 1814 | Christian Grothoff | 2011-10-02 |
| | |||
* | adding empty lines | Christian Grothoff | 2011-09-30 |
| | |||
* | speed up BF tests | Christian Grothoff | 2011-09-30 |
| | |||
* | nicer | Christian Grothoff | 2011-09-30 |
| | |||
* | fixing #1781 | Christian Grothoff | 2011-09-18 |
| | |||
* | linux-only | Christian Grothoff | 2011-09-18 |
| | |||
* | fixwarning | Christian Grothoff | 2011-09-18 |
| | |||
* | SO_SNDBUF/SO_RECVBUF do not work on FreeBSD | Christian Grothoff | 2011-09-18 |
| | |||
* | better error handling | Christian Grothoff | 2011-09-18 |
| | |||
* | fix | Christian Grothoff | 2011-09-17 |
| | |||
* | do use reuseaddr on non-W32 systems | Christian Grothoff | 2011-09-16 |
| | |||
* | dbg support: | Christian Grothoff | 2011-09-15 |
| | |||
* | fixfix | Christian Grothoff | 2011-09-14 |
| | |||
* | fixing 1753 | Christian Grothoff | 2011-09-14 |
| | |||
* | misc train hacking | Christian Grothoff | 2011-09-09 |
| | |||
* | doxygen | Christian Grothoff | 2011-09-02 |
| | |||
* | fixed bug https://www.gnunet.org/bugs/view.php?id=1762 | Matthias Wachs | 2011-08-31 |
| | |||
* | minor cleanup | Christian Grothoff | 2011-08-30 |
| | |||
* | removing unique id code | Matthias Wachs | 2011-08-30 |
| | |||
* | run indent twice, it alternates between two 'canonical' forms, also run ↵ | Christian Grothoff | 2011-08-29 |
| | | | | whitespace remover | ||
* | changes to server lib | Matthias Wachs | 2011-08-26 |
| | | | | | | Added a unique ID to struct GNUNET_SERVER_Client to be able to distinguish between different clients | ||
* | even nicer indentation, thanks to LRN's indent patch | Christian Grothoff | 2011-08-16 |
| | |||
* | indentation | Christian Grothoff | 2011-08-15 |
| | |||
* | indentation | Christian Grothoff | 2011-08-15 |
| | |||
* | indentation | Christian Grothoff | 2011-08-15 |
| | |||
* | check | Christian Grothoff | 2011-08-15 |
| | |||
* | cleanup | Christian Grothoff | 2011-08-15 |
| | |||
* | remove getter, make global static, add closure argument | Christian Grothoff | 2011-08-14 |
| | |||
* | LRN: Added-the-ability-to-substitute-scheduler-select. | Christian Grothoff | 2011-08-14 |
| | |||
* | dos2unix | Christian Grothoff | 2011-08-14 |
| | |||
* | fix | Christian Grothoff | 2011-08-13 |
| | |||
* | LRN: disable bind test on W32 | Christian Grothoff | 2011-08-12 |
| | |||
* | use bind instead of connect to test if service is running to avoid long ↵ | Christian Grothoff | 2011-08-11 |
| | | | | timeouts during startup | ||
* | strndup | Christian Grothoff | 2011-08-10 |
| | |||
* | LRN: 0001-W32-create-parent-directory-for-a-new-file.patch | Christian Grothoff | 2011-08-05 |
| | |||
* | LRN: Fix automake deps to allow -j* builds again | Christian Grothoff | 2011-08-03 |
| | |||
* | fixfix | Christian Grothoff | 2011-08-02 |
| | |||
* | chmod | Christian Grothoff | 2011-08-02 |
| | |||
* | force passing of sanity check | Christian Grothoff | 2011-08-02 |
| | |||
* | fix | Christian Grothoff | 2011-08-02 |
| | |||
* | fixing parent_control_handler hack, adding lifeness attribute to tasks | Christian Grothoff | 2011-08-02 |
| | |||
* | fixing compile error, improving style | Christian Grothoff | 2011-08-01 |
| | |||
* | LRN: Fix debug logging in test_configuration | Christian Grothoff | 2011-08-01 |
| | |||
* | LRN: Don't wait for parent control handler to quit | Christian Grothoff | 2011-08-01 |
| | | | | | CG: Note: this should not stand; temporary hack. | ||
* | LRN: Fix _kill() debugging and I/O interpretation | Christian Grothoff | 2011-08-01 |
| | | | | | | | | | * Don't be verbose by default anymore - use #if DEBUG_OS * Don't count a failure to write into a control pipe as an error this DOES happen when the child is dead (which is how a utility should be when it finishes) | ||
* | LRN: Be aware of absolute DOS-style paths as well | Christian Grothoff | 2011-08-01 |
| | |||
* | LRN: Bratao's select() implementation for W32 | Christian Grothoff | 2011-08-01 |
| | |||
* | LRN: Allow env vars to adjust and override loglevel | Christian Grothoff | 2011-08-01 |
| |