1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! This file contains wrapper macros for the `env_logger` crate.
//! I specifically wanted to wrap around `warn` as I wanted all warnings
//! to panic if they occurred in the Github Actions workflow.
/// Calls [`log::info!`].
/// Calls [`log::warn!`] if executed outside of Github Actions. If it is executed inside
/// of GA, it instead panics. This is done to make sure that no warnings are missed during a
/// workflow run. GA sets an environment variable `CI=TRUE` which is how I determine if this
/// should panic or not.
/// Calls [`log::error!`].