mirror of
https://github.com/kiddin9/op-packages.git
synced 2026-11-02 02:03:56 +08:00
🌴 Sync 2026-03-05 23:51:42
This commit is contained in:
1 parent
97c049ed0a
commit
0acff03804
14253 files changed
+3893239
No files matched your search
@@ -0,0 +1,46 @@
|
||||
--- a/src/hbbr.rs
|
||||
+++ b/src/hbbr.rs
|
||||
@@ -8,7 +8,19 @@ mod version;
|
||||
|
||||
fn main() -> ResultType<()> {
|
||||
let _logger = Logger::try_with_env_or_str("info")?
|
||||
- .log_to_stdout()
|
||||
+ .log_to_file(
|
||||
+ FileSpec::default()
|
||||
+ .directory("/var/run/rustdesk-server")
|
||||
+ .basename("hbbr")
|
||||
+ .suffix("log")
|
||||
+ .suppress_timestamp()
|
||||
+ )
|
||||
+ .rotate(
|
||||
+ Criterion::Size(10_000_000),
|
||||
+ Naming::Numbers,
|
||||
+ Cleanup::KeepLogFiles(3),
|
||||
+ )
|
||||
+ .duplicate_to_stderr(Duplicate::Warn)
|
||||
.format(opt_format)
|
||||
.write_mode(WriteMode::Async)
|
||||
.start()?;
|
||||
--- a/src/main.rs
|
||||
+++ b/src/main.rs
|
||||
@@ -9,7 +9,19 @@ const RMEM: usize = 0;
|
||||
|
||||
fn main() -> ResultType<()> {
|
||||
let _logger = Logger::try_with_env_or_str("info")?
|
||||
- .log_to_stdout()
|
||||
+ .log_to_file(
|
||||
+ FileSpec::default()
|
||||
+ .directory("/var/run/rustdesk-server")
|
||||
+ .basename("hbbs")
|
||||
+ .suffix("log")
|
||||
+ .suppress_timestamp()
|
||||
+ )
|
||||
+ .rotate(
|
||||
+ Criterion::Size(10_000_000),
|
||||
+ Naming::Numbers,
|
||||
+ Cleanup::KeepLogFiles(3),
|
||||
+ )
|
||||
+ .duplicate_to_stderr(Duplicate::Warn)
|
||||
.format(opt_format)
|
||||
.write_mode(WriteMode::Async)
|
||||
.start()?;
|
||||
Reference in new issue
Block a user