# stage2: Warn when using \-\-debug-log without logging enabled · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/f69305f865c346ffb2a00403efd0768f8bbdd20b)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: f69305f865c346ffb2a00403efd0768f8bbdd20b

Requested commit: f69305f865c346ffb2a00403efd0768f8bbdd20b

Commit: f69305f865c346ffb2a00403efd0768f8bbdd20b

Tree: 8c212eefddd4d9f4b2353059855418021c25ab75

Author: Ersikan

Committer: Isaac Freund

## Message

```
stage2: Warn when using --debug-log without logging enabled

A warning is emitted when using the debug option --debug-log when the compiler
was not compiled using the build option -Dlog. Additionnaly, the scopes are not
added to log_scopes as they have no effect.

```

## Parents

- [4e9894cfc4c8e2e1d3e01aa2e3400b295b0ee2df](https://git.cafe/gitcafe/zig/commit/4e9894cfc4c8e2e1d3e01aa2e3400b295b0ee2df?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/f69305f865c346ffb2a00403efd0768f8bbdd20b?format=markdown)
