Comments (6)
Unrelated, but you should use the log
or tracing
crates to print info/warn/error messages instead of prepending [WARN]
so the final binary programs can subscribe/filter/modify the logs of libraries.
from rookie.
Thanks for letting me know! I agree that we need better logging. I will add the pretty_env_logger or just the log crate and more log entries because it's a good way to catch errors.
Regarding error types, I'm not sure if we should have strict error types or not, but we definitely need to change the type I used
from rookie.
I'm not too familiar with the log
/env_logger
/pretty_env_logger
family of crates, as I use tracing
/tracing_subscriber
crates.
I assume env_logger
/pretty_env_logger
(tracing_subscriber
) is meant to be used in the binary to configure logging, while log
(tracing
) is meant to be used in both to do the logging.
I usually use anyhow
for everything, unless I think there's a need for multiple error types.
If there's a method that can error for multiple reasons and if there's a good chance the end user might need to know the difference for behavior or if they just need to know Ok
/Err
from rookie.
Hi
I changed all the errors to throw Result of anyhow
, and also added logging using log
.
Can you try it before I publish?
You can add it to Cargo.toml
and add the latest code this way:
[dependencies]
rookie = { git = "https://github.com/thewh1teagle/rookie" }
from rookie.
It works!
from rookie.
Great!
added to latest version.
from rookie.
Related Issues (20)
- cant decrypt value HOT 10
- Some cookies are missing(?) HOT 10
- python 3.12 wheels on windows and macOS HOT 2
- Incorrect expiry times HOT 3
- Retrieving session cookies expires them HOT 18
- [Bug]: Chrome config additional profiles may have "Cookies" filename instead of "Cookie" HOT 2
- [Feature Request]: Dealing with cookies with "Session" expiry HOT 2
- [Feature Request]: How to specify cookie_file and key_file in rookie? HOT 4
- [Bug]: panicked at macos HOT 4
- [Bug]: It doesn't work correctly with Octo Browser HOT 3
- [Bug]: Firefox: Incomplete profiles.ini parsing HOT 3
- [Bug]: microsoft-edge-dev cookie file path should be dev instead of Dev? HOT 2
- [Bug]: Inability to Decrypt Cookies in Octo Browser HOT 5
- [Feature Request]: Windows reading chrome cookies that are currently in use. HOT 2
- [Feature Request]: is there a way to copy user profile of a browser? HOT 1
- [Bug]: Panic with chrome 'range end index 3 out of range for slice of length 0' HOT 1
- Can i hide the rust panic message? HOT 1
- [Feature Request]: Replace cfg_if macros with someting else HOT 1
- [Feature Request]: Can you add a function to save cookie as Netscape cookie file format? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rookie.