We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce6998 commit 6a0b154Copy full SHA for 6a0b154
src/cdp/runtime.zig
@@ -16,6 +16,7 @@
16
// You should have received a copy of the GNU Affero General Public License
17
// along with this program. If not, see <https://www.gnu.org/licenses/>.
18
19
+const builtin = @import("builtin");
20
const std = @import("std");
21
const cdp = @import("cdp.zig");
22
@@ -37,7 +38,7 @@ pub fn processMessage(cmd: anytype) !void {
37
38
39
fn sendInspector(cmd: anytype, action: anytype) !void {
40
// save script in file at debug mode
- if (std.log.defaultLogEnabled(.debug)) {
41
+ if (builtin.mode == .Debug) {
42
try logInspector(cmd, action);
43
}
44
0 commit comments