question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Adding detailed logging to hydrus

See original GitHub issue

I’m submitting a

  • bug report.
  • feature request.

Current Behaviour:

Currently, we don’t have any detailed logging system for hydrus. No logs are being generated.

Expected Behaviour:

We can generate the log files which could help the users for getting the Object_id for any future manipulation and developers for debugging faster.

We will have a separate log folder that will be generated while running hydrus server.

Logs
|
|_ _ hydrus.log

Log file format

Logs/hydrus.log

run_time : 12-may-12:00:00
API_Doc fetched Successfully.
Context generated.
Terminated!
Database setup Error.

Do you want to work on this issue?

yes, I and @farazkhanfk7 are working on this and changing the API response structure issue .

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
Mec-iScommented, May 14, 2021

first of all we need to establish an id for each request and assign the request an unique id (like a uuid). you can do this by using the before_request and after_request; this should be present in each log line together with timestamp and HTTP method used and uri.

note: be sure that the log level is read from an environment variable and not hard-coded.

EDIT: you can start from structlog examples

please @farazkhanfk7 contribute to the discussion

1reaction
Mec-iScommented, May 12, 2021

If you need a reference for logging, please check structlog. We may want to use it organisation-wide.

It has the same API as standard Python logging, but allows many more features and having much more structured logs.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Launch Arguments - hydrus network - GitHub Pages
An example of a launch command with arguments: C:\Hydrus Network\client.exe -d="E:\hydrus db" --no_db_temp_files. You can also add --help to your program ...
Read more >
Hydrus Manual
Prints additional debug information to the log during the bootup phase of the application. --no_daemons. Launch the program without some background workers.
Read more >
Enabling detailed logging on Deep Security Agent (DSA)
Locate a directory where you want to save the log, then click OK. Close the DbgView window. Enabling detailed logging of the Agent...
Read more >
Hydrus Network on Tumblr
I fixed some bugs, added some new import and tag search options for advanced users, and made thumbnails look crisp at high UI...
Read more >
Hydrus Microstent - EyeWiki
Hydrus Microstent as surgical therapy for mild to moderate open-angle glaucoma.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found