|
1 | 1 | STTRACE
|
2 |
| - Used to increase the debugging verbosity in specific or all facilities, |
3 |
| - generally mapping to a Go package. Enabling any of these also enables |
4 |
| - microsecond timestamps, file names plus line numbers. Enter a |
5 |
| - comma-separated string of facilities to trace. ``syncthing --help`` always |
6 |
| - outputs an up-to-date list. The valid facility strings are: |
7 |
| - |
8 |
| - Main and operational facilities: |
9 |
| - config |
10 |
| - Configuration loading and saving. |
11 |
| - db |
12 |
| - The database layer. |
13 |
| - main |
14 |
| - Main package. |
15 |
| - model |
16 |
| - The root hub; the largest chunk of the system. File pulling, index |
17 |
| - transmission and requests for chunks. |
18 |
| - scanner |
19 |
| - File change detection and hashing. |
20 |
| - versioner |
21 |
| - File versioning. |
22 |
| - |
23 |
| - Networking facilities: |
24 |
| - beacon |
25 |
| - Multicast and broadcast UDP discovery packets: Selected interfaces |
26 |
| - and addresses. |
27 |
| - connections |
28 |
| - Connection handling. |
29 |
| - dialer |
30 |
| - Dialing connections. |
31 |
| - discover |
32 |
| - Remote device discovery requests, replies and registration of |
33 |
| - devices. |
34 |
| - nat |
35 |
| - NAT discovery and port mapping. |
36 |
| - pmp |
37 |
| - NAT-PMP discovery and port mapping. |
38 |
| - protocol |
39 |
| - The BEP protocol. |
40 |
| - relay |
41 |
| - Relay interaction (``strelaysrv``). |
42 |
| - upnp |
43 |
| - UPnP discovery and port mapping. |
44 |
| - |
45 |
| - Other facilities: |
46 |
| - fs |
47 |
| - Filesystem access. |
48 |
| - events |
49 |
| - Event generation and logging. |
50 |
| - http |
51 |
| - REST API. |
52 |
| - sha256 |
53 |
| - SHA256 hashing package (this facility currently unused). |
54 |
| - stats |
55 |
| - Persistent device and folder statistics. |
56 |
| - sync |
57 |
| - Mutexes. Used for debugging race conditions and deadlocks. |
58 |
| - upgrade |
59 |
| - Binary upgrades. |
60 |
| - walkfs |
61 |
| - Filesystem access while walking. |
62 |
| - |
63 |
| - all |
64 |
| - All of the above. |
65 |
| - |
66 |
| -STBLOCKPROFILE |
67 |
| - Write block profiles to ``block-$pid-$timestamp.pprof`` every 20 seconds. |
68 |
| - |
69 |
| -STCPUPROFILE |
70 |
| - Write a CPU profile to ``cpu-$pid.pprof`` on exit. |
71 |
| - |
72 |
| -STDEADLOCKTIMEOUT |
73 |
| - Used for debugging internal deadlocks; sets debug sensitivity. Use only |
74 |
| - under direction of a developer. |
| 2 | + Used to increase the debugging verbosity in specific facilities, |
| 3 | + generally mapping to a Go package. Enter a comma-separated string of |
| 4 | + facilities to trace: ``api,beacon``. Optionally, a log level can be |
| 5 | + given per facility to specify something other than DEBUG: |
| 6 | + ``api:WARN,beacon:ERR``, potentially overriding a global ``--log-level`` |
| 7 | + adjustment. |
| 8 | + |
| 9 | + The valid facility strings are listed below; additionally, ``syncthing |
| 10 | + serve --help`` always outputs the most up-to-date list. |
| 11 | + |
| 12 | + api - REST API |
| 13 | + beacon - Multicast and broadcast discovery |
| 14 | + config - Configuration loading and saving |
| 15 | + connections - Connection handling |
| 16 | + db/sqlite - SQLite database |
| 17 | + dialer - Dialing connections |
| 18 | + discover - Remote device discovery |
| 19 | + events - Event generation and logging |
| 20 | + fs - Filesystem access |
| 21 | + main - Main package |
| 22 | + model - The root hub |
| 23 | + nat - NAT discovery and port mapping |
| 24 | + pmp - NAT-PMP discovery and port mapping |
| 25 | + protocol - The BEP protocol |
| 26 | + relay/client - Relay client |
| 27 | + scanner - File change detection and hashing |
| 28 | + stun - STUN functionality |
| 29 | + syncthing - Main run facility |
| 30 | + upgrade - Binary upgrades |
| 31 | + upnp - UPnP discovery and port mapping |
| 32 | + ur - Usage reporting |
| 33 | + versioner - File versioning |
| 34 | + watchaggregator - Filesystem event watcher |
75 | 35 |
|
76 | 36 | STLOCKTHRESHOLD
|
77 | 37 | Used for debugging internal deadlocks; sets debug sensitivity. Use only
|
78 | 38 | under direction of a developer.
|
79 | 39 |
|
80 |
| -STGUIADDRESS |
81 |
| - Override GUI listen address. Equivalent to passing :option:`--gui-address`. |
82 |
| - |
83 |
| -STGUIAPIKEY |
84 |
| - Override the API key needed to access the GUI / REST API. Equivalent to |
85 |
| - passing :option:`--gui-apikey`. |
86 |
| - |
87 |
| -STGUIASSETS |
88 |
| - Directory to load GUI assets from. Overrides compiled in assets. Useful for |
89 |
| - developing webgui, commonly use ``STGUIASSETS=gui bin/syncthing``. |
90 |
| - |
91 |
| -STHEAPPROFILE |
92 |
| - Write heap profiles to ``heap-$pid-$timestamp.pprof`` each time heap usage |
93 |
| - increases. |
94 |
| - |
95 |
| -STNODEFAULTFOLDER |
96 |
| - Don't create a default folder when starting for the first time. This |
97 |
| - variable will be ignored anytime after the first run. Equivalent to the |
98 |
| - :option:`--no-default-folder` flag. |
99 |
| - |
100 |
| -STNORESTART |
101 |
| - Equivalent to the :option:`--no-restart` flag. |
102 |
| - |
103 |
| -STNOUPGRADE |
104 |
| - Disable automatic upgrades. Equivalent to the :option:`--no-upgrade` flag. |
105 |
| - |
106 |
| -STPROFILER |
107 |
| - Set to a listen address such as "127.0.0.1:9090" to start the profiler with |
108 |
| - HTTP access, which then can be reached at |
109 |
| - http://localhost:9090/debug/pprof. See ``go tool pprof`` for more |
110 |
| - information. |
111 |
| - |
112 |
| -STPERFSTATS |
113 |
| - Write running performance statistics to ``perf-$pid.csv``. Not supported on |
114 |
| - Windows. |
115 |
| - |
116 |
| -STRECHECKDBEVERY |
117 |
| - Time before folder statistics (file, dir, ... counts) are recalculated from |
118 |
| - scratch. The given duration must be parseable by Go's ``time.ParseDuration``. If |
119 |
| - missing or not parseable, the default value of 1 month is used. To force |
120 |
| - recalculation on every startup, set it to ``1s``. |
121 |
| - |
122 |
| -STGCINDIRECTEVERY |
123 |
| - Sets the time interval in between database garbage collection runs. The |
124 |
| - given duration must be parseable by Go's ``time.ParseDuration``. |
| 40 | +STVERSIONEXTRA |
| 41 | + Add extra information to the version string in logs and the version line |
| 42 | + in the GUI. Can be set to the name of a wrapper or tool controlling |
| 43 | + syncthing to communicate this to the end user. |
125 | 44 |
|
126 | 45 | GOMAXPROCS
|
127 | 46 | Set the maximum number of CPU cores to use. Defaults to all available CPU
|
|
0 commit comments