Skip to content

Commit

Permalink
fix: Add \n to all logs and errors
Browse files Browse the repository at this point in the history
  • Loading branch information
DashieTM committed Mar 15, 2024
1 parent ae0ef37 commit 9d4a116
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/bluetooth/bluetooth_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl BluetoothInterface {
if res.is_err() {
ERROR!(
"/tmp/reset_daemon_log",
"Could not get bluetooth objects",
"Could not get bluetooth objects\n",
ErrorLevel::PartialBreakage
);
return None;
Expand Down Expand Up @@ -284,7 +284,7 @@ impl BluetoothInterface {
if res.is_err() {
ERROR!(
"/tmp/reset_daemon_log",
"Could not send signal",
"Could not send signal\n",
ErrorLevel::PartialBreakage
);
}
Expand Down Expand Up @@ -316,7 +316,7 @@ impl BluetoothInterface {
if res.is_err() {
ERROR!(
"/tmp/reset_daemon_log",
"Could not send signal",
"Could not send signal\n",
ErrorLevel::PartialBreakage
);
}
Expand Down Expand Up @@ -359,7 +359,7 @@ impl BluetoothInterface {
if res.is_err() {
ERROR!(
"/tmp/reset_daemon_log",
"Could not send signal",
"Could not send signal\n",
ErrorLevel::PartialBreakage
);
}
Expand Down
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,14 +91,16 @@ pub async fn run_daemon() {
if wifi_enabled {
features.push(setup_wireless_manager(&mut cross));
feature_strings.push("WiFi");
LOG!("/tmp/reset_daemon_log", "WiFi feature started\n");
}
if bluetooth_enabled {
features.push(setup_bluetooth_manager(&mut cross));
// the agent is currently not implemented
// features.push(setup_bluetooth_agent(&mut cross));
feature_strings.push("Bluetooth");
LOG!("/tmp/reset_daemon_log", "Bluetooth feature started\n");
}
// TODO, how to check for audio?
// TODO: how to check for audio?
features.push(setup_audio_manager(&mut cross));
feature_strings.push("Audio");

Expand Down
2 changes: 1 addition & 1 deletion src/network/network_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ pub fn get_connection_settings(path: Path<'static>) -> Result<MaskedPropMap, dbu
if res.is_err() {
LOG!(
"/tmp/reset_daemon_log",
format!("Could not get secrets of connection: {}", path)
format!("Could not get secrets of connection: {}\n", path)
);
return Ok(map);
}
Expand Down

0 comments on commit 9d4a116

Please sign in to comment.