diff options
| author | Kunal Mohan <44079328+kunalmohan@users.noreply.github.com> | 2020-12-09 22:31:26 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-09 18:01:26 +0100 |
| commit | 92d1bcff4c0d1d886cefee6984d5533c5ea8dd6f (patch) | |
| tree | 2ef85153a55e61f1d97e03dfa608ac853fe22887 /src/utils | |
| parent | fix(style): else-if ladder -> match (#86) (diff) | |
| download | sl0ppij-92d1bcff4c0d1d886cefee6984d5533c5ea8dd6f.tar.gz sl0ppij-92d1bcff4c0d1d886cefee6984d5533c5ea8dd6f.tar.xz sl0ppij-92d1bcff4c0d1d886cefee6984d5533c5ea8dd6f.zip | |
feat(infrastructure): introduce ErrorContext for tracking errors across threads (#83)
* Implement ErrorContext for tracking errors across threads
* reorder Instruction and ErrorContext
* Add ContextType, AppContext, ScreenContext, PtyContext
* Use ArrayVec in ErrorContext
* increase MAX_THREAD_CALL_STACK to 6
* Custom implement Debug for ErrorContext ad ContextType and color output
* Use os_input instead of println!()
* Use array instead of ArrayVec and some cleanup
* Introduce SenderWithContext
* Keep arrayvec at v0.5.1
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/logging.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/logging.rs b/src/utils/logging.rs index 84a2da8f..05af455c 100644 --- a/src/utils/logging.rs +++ b/src/utils/logging.rs @@ -37,7 +37,7 @@ pub fn debug_log_to_file_without_newline(message: String) -> io::Result<()> { file.write_all(message.as_bytes()) } -pub fn debug_log_to_file_pid_3(message: String, pid: RawFd) -> io::Result<()> { +pub fn _debug_log_to_file_pid_3(message: String, pid: RawFd) -> io::Result<()> { if pid == 3 { debug_log_to_file(message) } else { |
