Andrew Bettison
91a0b2520f
Forward-compatible keyring format
2013-04-23 18:13:01 +09:30
Andrew Bettison
8771a50b14
Fix TTL out-of-range bug
...
Was causing two routing tests to fail since the TTL decrement
logic was fixed in a8b88a46
The default TTL of 64 overflowed the 5-bit unsigned int in the MDP
packet header
2013-04-23 16:02:39 +09:30
Andrew Bettison
121ae2d609
Improve timeout control in routing tests
2013-04-22 16:01:38 +09:30
Andrew Bettison
e66c39a213
Improve config documentation
2013-04-16 12:44:47 +09:30
Andrew Bettison
f72e64fead
Minor improvements to config doco
2013-04-15 19:20:35 +09:30
Andrew Bettison
534bf7a1a2
Improve network interface configuration doco
2013-04-15 18:59:49 +09:30
Andrew Bettison
64699101b0
Update Servald network interfaces documentation
2013-04-15 16:30:45 +09:30
Andrew Bettison
ddfcc60331
Log WARNing not ERROR for missing dummy interface file
2013-04-15 16:30:07 +09:30
Andrew Bettison
521e04a1c6
Update configuration and logging instructions
2013-04-12 17:18:53 +09:30
Andrew Bettison
81af4460f3
Fix broken "ping" command arg parsing
2013-04-12 17:18:25 +09:30
Andrew Bettison
a8b88a462f
Fix clang compiler warnings (revealed some bugs)
2013-04-12 17:16:50 +09:30
Andrew Bettison
a9a1ffecde
Simplify "start" commands
...
Remove all "in <instancepath>" variants
Make "foreground" and "exec <path>" variants mutually exclusive, using
new CLI alternatives syntax
Fix some log levels to assist newbies
2013-04-11 17:54:18 +09:30
Andrew Bettison
38b1141dc7
Fix bugs in log file rotation
2013-04-11 17:54:18 +09:30
Jeremy Lakeman
96c0889f9a
Don't ask for manifests if we don't have room in transfer queues
2013-04-11 15:24:41 +09:30
Andrew Bettison
76d7743efc
Silence clang warnings
2013-04-11 13:46:09 +09:30
Andrew Bettison
58ff69c1d3
Fix #59 : "-h" and "--help" synonyms for "help"
2013-04-09 17:26:38 +09:30
Andrew Bettison
5bbdef5587
Improve command-line parsing (issue #59 )
...
Emit HINT log message about using "help" command
Support alternatives syntax "word|word|..." in CLI schema
Better return values from cli_parse()
2013-04-09 17:23:20 +09:30
Andrew Bettison
b826ac1f1b
Improve logging: add HINT level, NOWHENCE() macro
2013-04-09 17:23:19 +09:30
Jeremy Lakeman
73342a9659
Announce routes to secondary keyring entries
2013-04-08 10:03:51 +09:30
Andrew Bettison
2c379fadb1
Merge branch 'naf2-logging' into 'development'
...
Conflicts:
commandline.c
tests/rhizomeprotocol
2013-04-05 17:39:23 +10:30
Andrew Bettison
ec481e5f0f
Rename config option 'log.stderr' to 'log.console'
...
Because Android <stdio.h> defines 'stderr' as a macro...
2013-04-05 16:55:14 +10:30
Andrew Bettison
f7fc63c452
Improve logging tests, fix failures, add 'log.file.path' config option
2013-04-05 16:23:20 +10:30
Andrew Bettison
f06613c35f
Fix test failures from latest logging changes
2013-04-05 15:28:54 +10:30
Andrew Bettison
a822dca2fa
Improve config schema macros and log options
...
Add STRUCT_ASSIGN macro to config schema
Document STRUCT_DEFAULT and STRUCT_ASSIGN in block comments
Move 'log.file_xxx' options to 'log.file.xxx'
2013-04-05 15:00:54 +10:30
Andrew Bettison
60551df890
Implement configurable log file rotation
2013-04-04 17:52:54 +10:30
Andrew Bettison
c11ec7e8bf
Improve form_serval_instance_path() error message
2013-04-04 17:46:09 +10:30
Andrew Bettison
bc8c820bf3
New config schema representations: uint32_time_interval and ushort
2013-04-04 17:43:43 +10:30
Andrew Bettison
2077265b2d
Add str_index(), str_rindex(), et al
2013-04-04 17:42:33 +10:30
Andrew Bettison
10e89c7438
Add strbuf_remaining()
...
Improve some comments in strbuf.h
2013-04-04 17:41:18 +10:30
Andrew Bettison
c6666387e8
Add strbuf_append_strftime()
2013-04-04 17:40:58 +10:30
Andrew Bettison
65f6e88e67
Add emkdirs() and emkdirsn()
2013-04-04 17:37:49 +10:30
Andrew Bettison
4be43b76d5
Remove CLIFLAG_NONOVERLAY and CLIFLAG_STANDALONE
...
Not used for anything
2013-04-02 17:49:56 +10:30
Andrew Bettison
21991726ae
Add logging tests, add "log" command
...
Refactor log.c ready for log file rotation
2013-04-02 17:01:48 +10:30
Andrew Bettison
0f83b9a5fc
Fix #60 - "rhizome direct" command line URL
...
Add test case for "rhizome push <url>" command
2013-04-02 14:54:46 +10:30
Andrew Bettison
2d09ec545e
Improve configuration dump to log
...
Refactor much of the new code in log.c
Add new functions: cf_load_strict() and cf_reload_strict() for use by the
server, which does not want to overwrite its in-memory config at all if there
is any defect in the config file. However, commands always want to overwrite
the default in-memory config, even with a defective config file, so that
logging has a chance to succeed.
Added `log_format.dump_config` boolean config option
2013-03-29 00:22:08 +10:30
Andrew Bettison
ab162bbc99
Fix Makefile broken by recent version string changes
2013-03-28 15:37:19 +10:30
Andrew Bettison
bcfd032223
Replace logDebugFlags() with logCurrentConfig()
2013-03-27 17:23:31 +10:30
Andrew Bettison
95b0c028f2
Log to file, Android and stderr simultaneously
...
Indepent configuration of show_pid, show_time and log level for each
destination
Update test scripts for new config options
Include xprintf.c in MDP client source files (now used by log.c)
2013-03-27 16:17:38 +10:30
Andrew Bettison
a50594971c
Fix comment in strbuf.h
2013-03-26 18:24:13 +10:30
Andrew Bettison
d3d6fa4547
Add log format config options for file and stderr
...
Upgrade configuration schema macros to allow optional "default label"
argument to SUB_STRUCT and VALUE_SUB_STRUCT elements.
New STRUCT_DEFAULT section declares alternative STRUCT default values
with a label.
2013-03-26 16:11:31 +10:30
Andrew Bettison
a88234ce9d
Add optional filter args to 'help' command
2013-03-25 12:05:26 +10:30
Andrew Bettison
28a77abc18
Add XPRINT strbuf adapter
2013-03-25 12:02:48 +10:30
Andrew Bettison
74adb2038a
Document 'config dump' command
...
Re-order the documentation sections and add more explanation
of how an invalid config file is handled.
2013-03-20 20:44:12 -07:00
Andrew Bettison
300ec986f1
Fix warnings from gcc 4.6.3
2013-03-18 16:48:15 +10:30
Andrew Bettison
7d312f51fb
Fix broken Android build
2013-03-18 15:35:37 +10:30
Andrew Bettison
1cfedb19e4
Fix broken 'make directory_service'
2013-03-18 15:35:13 +10:30
Andrew Bettison
a5d3c16928
Move 'serverMode' flag from server.c to log.c
...
Because log.c and conf.c now depend on serverMode
2013-03-18 15:34:33 +10:30
Andrew Bettison
edd245fa81
Fix version_string.sh for older Git versions
2013-03-18 14:31:19 +10:30
gardners
3a0a4df216
add place-holder tests for adding channel labels to Rhizome. #58
2013-03-18 13:27:15 +10:30
Andrew Bettison
5dd6a53615
Fix 'rhizomeops' tests
...
Rename duplicate AddNoAuthor test to AddNoAuthorEncrypted
Fix broken AddNoAuthor test
Add new AddInvalidAuthor test
2013-03-15 15:58:17 +10:30