Cuong Manh Le
7ed6733fb7
cmd/cli: better error if internal log is not available
2025-01-24 14:54:01 +07:00
Cuong Manh Le
8bcbb9249e
cmd/cli: add an internal warn level log writer
...
So important events like upstream online/offline/failed will be
preserved, and submitted to the server as necessary.
2025-01-14 14:33:27 +07:00
Cuong Manh Le
3713cbecc3
cmd/cli: correct log writer initial size
2025-01-14 14:32:26 +07:00
Cuong Manh Le
a5c776c846
all: change send log to use x-www-form-urlencoded
2025-01-14 14:31:37 +07:00
Cuong Manh Le
5a566c028a
cmd/cli: better error message when log file is empty
...
While at it, also record the size of logs being sent in debug/error
message.
2025-01-14 14:31:24 +07:00
Cuong Manh Le
89f7874fc6
cmd/cli: normalize log path when sending log
...
So the correct log file that "ctrld run" process is writing logs to will
be sent to server correctly.
2024-12-19 21:50:00 +07:00
Cuong Manh Le
8a96b8bec4
cmd/cli: adopt FilteredLevelWriter when doing internal logging
...
Without verbose log, we use internal log writer with log level set to
debug. However, this will affect other writers, like console log, since
they are default to notice level.
By adopting FilteredLevelWriter, we can make internal log writer run in
debug level, but all others will run in default level instead.
2024-12-19 21:50:00 +07:00
Cuong Manh Le
cd5619a05b
cmd/cli: add internal logging
...
So in case of no logging enabled, useful data could be sent to ControlD
server for further troubleshooting.
2024-12-19 21:50:00 +07:00