Skip to content

Commit 8c9b8eb

Browse files
committed
Use logging
1 parent 2d70436 commit 8c9b8eb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ctfcli/cli/instance.py

+4
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@
1111
class ConfigCommand:
1212
def get(self, key):
1313
"""Get the value of a specific remote instance config key"""
14+
log.debug(f"ConfigCommand.get: ({key=})")
1415
return ServerConfig.get(key=key)
1516

1617
def set(self, key, value):
1718
"""Set the value of a specific remote instance config key"""
19+
log.debug(f"ConfigCommand.set: ({key=})")
1820
ServerConfig.set(key=key, value=value)
1921
click.secho(f"Successfully set '{key}' to '{value}'", fg="green")
2022

2123
def pull(self):
2224
"""Copy remote instance configuration values to local config"""
25+
log.debug("ConfigCommand.pull")
2326
server_configs = ServerConfig.getall()
2427

2528
config = Config()
@@ -39,6 +42,7 @@ def pull(self):
3942

4043
def push(self):
4144
"""Save local instance configuration values to remote CTFd instance"""
45+
log.debug("ConfigCommand.push")
4246
config = Config()
4347
if config.config.has_section("instance") is False:
4448
config.config.add_section("instance")

0 commit comments

Comments
 (0)