hirosystems / clarinet

Write, test and deploy high-quality smart contracts to the Stacks blockchain and Bitcoin.
https://hiro.so/clarinet
GNU General Public License v3.0
290 stars 129 forks source link

feat: add new features to hiro-system-kit #1396

Closed MicaiahReid closed 2 months ago

MicaiahReid commented 3 months ago

Chainhook needs a debug log level that still uses slog_json when built in release mode. This PR adds a new feature to accomplish this.

Additionally, Grafana has set log levels that it uses for parsing logs. Currently the devops team has custom patches to support parsing logs from hiro system kit, because it abbreviates log prefixes in weird ways (DEBUG => DEBG, ERROR => ERRO). This PR also adds a feature, full_log_level_prefix, which just has slog log the full prefix, which will allow devops to remove this custom patches.

codecov[bot] commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 54 lines in your changes are missing coverage. Please review.

Project coverage is 40.85%. Comparing base (ccd68f7) to head (51f484c).

Files Patch % Lines
components/hiro-system-kit/src/log/mod.rs 0.00% 54 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1396 +/- ## ========================================== - Coverage 40.91% 40.85% -0.07% ========================================== Files 87 87 Lines 32519 32567 +48 ========================================== Hits 13305 13305 - Misses 19214 19262 +48 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.