File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1616// You should have received a copy of the GNU Affero General Public License
1717// along with this program. If not, see <https://www.gnu.org/licenses/>.
1818
19+ const builtin = @import ("builtin" );
1920const std = @import ("std" );
2021const cdp = @import ("cdp.zig" );
2122
@@ -37,7 +38,7 @@ pub fn processMessage(cmd: anytype) !void {
3738
3839fn sendInspector (cmd : anytype , action : anytype ) ! void {
3940 // save script in file at debug mode
40- if (std . log . defaultLogEnabled ( .debug ) ) {
41+ if (builtin . mode == .Debug ) {
4142 try logInspector (cmd , action );
4243 }
4344
@@ -108,7 +109,7 @@ fn logInspector(cmd: anytype, action: anytype) !void {
108109 const id = cmd .input .id orelse return error .RequiredId ;
109110 const name = try std .fmt .allocPrint (cmd .arena , "id_{d}.js" , .{id });
110111
111- var dir = try std .fs .cwd ().makeOpenPath ("zig-cache/tmp" , .{});
112+ var dir = try std .fs .cwd ().makeOpenPath (". zig-cache/tmp" , .{});
112113 defer dir .close ();
113114
114115 const f = try dir .createFile (name , .{});
You can’t perform that action at this time.
0 commit comments